Jazz2::Actors::Bosses::TurtleBoss class

Turtle (boss).

The Tuf Turtle boss, an oversized turtle that walks toward the nearest player. Once it has walked for a while with a player nearby it stops to swing a spiked mace that flies out to where the player stood and returns. It is defeated by depleting its health, after which its shell is flung loose.

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

TurtleBoss()
Creates a new instance.
~TurtleBoss()

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.
auto OnPerish(ActorBase* collider) -> bool override
Called when the object has no health left and should perish.