BonusWarp class
Bonus warp.
Warp portal that transports the player to a bonus stage, but only once they have collected enough coins to cover its cost. The required coin amount is shown on the warp, and entering it teleports the rabbit to the linked warp target.
Base classes
- class Jazz2::Actors::ActorBase
- Base class of an object.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- BonusWarp()
- Creates a new instance.
Public functions
- void Activate(Player* player)
- Activates the warp.
-
auto GetCost() const -> std::
uint16_t - Returns cost of the warp in coins.
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.