TriggerCrate class
#include <Jazz2/Actors/Solid/TriggerCrate.h>
Trigger crate.
A wooden crate that, when destroyed by a shot, TNT or a charged player, sets, clears or toggles a numbered level trigger. Triggers in turn switch trigger-zone tiles on or off, opening or blocking paths elsewhere in the level.
Base classes
- class Jazz2::Actors::SolidObjectBase
- Base class of a (pushable) solid object.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- TriggerCrate()
- Creates a new instance.
Public functions
- auto OnHandleCollision(ActorBase* other) -> bool override
- Called when the object collides with another object.
- auto CanCauseDamage(ActorBase* collider) -> bool override
- Called to check whether
collidercan cause damage to the object.
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.