PowerUpShieldMonitor class
Power-up shield monitor.
A floating monitor that, when broken by the player, grants a temporary protective shield of a given element (fire, water, lightning or laser) that surrounds the player and wears off after a while.
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
- PowerUpShieldMonitor()
- 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. - void DestroyAndApplyToPlayer(Player* player)
- Destroys the monitor and applies the shield to the specified player.
Protected functions
- auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
- Called when the object is created and activated.
- void OnUpdateHitbox() override
- Called when the hitbox needs to be updated.
- auto OnPerish(ActorBase* collider) -> bool override
- Called when the object has no health left and should perish.