Jazz2::Actors::Enemies::Dragon class

Dragon.

Small dragon that stays in place and faces the nearest player within range, then spits a stream of short-lived fireballs at them before pausing between bursts. Defeated by a single hit.

Base classes

class EnemyBase
Base class of an enemy.

Public static functions

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

Constructors, destructors, conversion operators

Dragon()
Creates a new instance.

Protected functions

auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
Called when the object is created and 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.