Jazz2::Actors::Weapons::TNT class

Base classes

class Jazz2::Actors::ActorBase
Base class of an object.

Constructors, destructors, conversion operators

TNT()

Public functions

auto OnHandleCollision(std::shared_ptr<ActorBase> other) -> bool override
Called when the object collides with another object.
auto GetOwner() -> Player*
Returns owner of the TNT.
void OnFire(const std::shared_ptr<ActorBase>& owner)
Called when the TNT is deployed.

Protected functions

auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
Called when the object is created and activated.
void OnUpdate(float timeMult) override
Called every frame to update the object state.
void OnEmitLights(SmallVectorImpl<LightEmitter>& lights) override
Called when emitting lights.