Jazz2::Actors::Multiplayer::RemotablePlayer class

Remotable player in online session.

Base classes

class MpPlayer
Player in online session.

Constructors, destructors, conversion operators

RemotablePlayer()

Public functions

void WarpIn(ExitType exitType)
Warps the player in.
void MoveRemotely(Vector2f pos, Vector2f speed)
Moves the player remotely.
auto Respawn(Vector2f pos) -> bool override
Respawns the player.

Public variables

bool ChangingWeaponFromServer
Whether current weapon is being changed by the server.
bool RespawnPending
Whether the player should be respawned.

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.
void SetCurrentWeapon(WeaponType weaponType) override
Sets current weapon.