Jazz2::Actors::Solid::PowerUpWeaponMonitor class

Power-up weapon monitor.

A floating monitor that, when broken by the player, permanently upgrades the matching weapon to its powered-up version and tops up its ammunition.

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

PowerUpWeaponMonitor()
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 collider can cause damage to the object.
void DestroyAndApplyToPlayer(Player* player)
Destroys the monitor and applies the weapon upgrade 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.