Jazz2::Actors::Collectibles::OneUpCollectible class

1up (collectible)

The one-up (extra life) pickup from JJ2. Collecting it grants the player an additional life and awards points.

Base classes

class CollectibleBase
Base class of a collectible object.

Public static functions

static void Preload(const ActorActivationDetails& details)
Preloads all assets required by this actor.

Constructors, destructors, conversion operators

OneUpCollectible()
Creates a new instance.

Protected functions

auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
Called when the object is created and activated.
void OnCollect(Player* player) override
Called when the collectible is collected.