class
PlayerOnServerPlayer on the server in online session.
Base classes
- class MpPlayer
- Player in online session.
Derived classes
- class LocalPlayerOnServer
- Local player in online session.
- class RemotePlayerOnServer
- Remote player in online session.
Constructors, destructors, conversion operators
Public functions
-
auto OnHandleCollision(std::
shared_ptr<ActorBase> other) -> bool override - Called when the object collides with another object.
- auto CanCauseDamage(ActorBase* collider) -> bool override
- Called to check whether
collider
can cause damage to the object. -
auto TakeDamage(std::
int32_t amount, float pushForce = 0.0f, bool ignoreInvulnerable = false) -> bool override - Takes damage.
-
auto AddLives(std::
int32_t count) -> bool override - Adds lives.
Protected functions
- void OnUpdate(float timeMult) override
- Called every frame to update the object state.
- auto IsAttacking() const -> bool
Protected variables
-
std::
shared_ptr<ActorBase> _lastAttacker - float _lastAttackerTimeout
- bool _canTakeDamage
- bool _justWarped