Jazz2::Actors::Solid::PowerUpMorphMonitor class

Power-up morph monitor.

A floating monitor that, when broken by the player, transforms them into another character, cycling between Jazz, Spaz and Lori (or, in the original game, morphing into a bird).

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

PowerUpMorphMonitor()
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 morph 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.