Jazz2::Actors::Multiplayer::RemotablePlayer class

Remotable player in online session.

Base classes

class Jazz2::Actors::Player
Represents a controllable player.

Constructors, destructors, conversion operators

RemotablePlayer()

Public functions

auto GetTeamId() const -> std::uint8_t
void SetTeamId(std::uint8_t value)
void WarpIn(ExitType exitType)
void MoveRemotely(Vector2f pos, Vector2f speed)

Protected functions

auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
Called when the object is created and activated.
auto OnPerish(ActorBase* collider) -> bool override
Called when the object has no health left and should perish.
void OnUpdate(float timeMult) override
Called every frame to update the object state.
void OnWaterSplash(Vector2f pos, bool inwards) override
Called when water should splash.
auto FireCurrentWeapon(WeaponType weaponType) -> bool override
Fires currently equipped weapon.