Jazz2::Actors::Bosses::Bubba class

Bubba (boss).

A large frog boss that bounds around the arena in big jumps. When it lands it jumps again, spews a fireball at a player standing level with it, or whirls into a tornado dash at the spot where a player stood. It is defeated by depleting its health.

Base classes

class BossBase
Base class of an enemy boss.

Public static functions

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

Constructors, destructors, conversion operators

Bubba()
Creates a new instance.

Public functions

auto TakesSingleBlastDamage() const -> bool override
Returns true if a TNT blast takes only one point of health however close it is.

Protected functions

auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
Called when the object is created and activated.
auto OnActivatedBoss() -> bool override
Called when the boss is activated.
void OnUpdate(float timeMult) override
Called every frame to update the object state.
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.
auto GetContactThrowSpeed() const -> Vector2f override
Returns the speed a player it hurts is thrown with, zero for a plain hit.