Jazz2::Actors::Enemies::Witch class

Witch.

Broom-riding witch that flies above the nearest player and casts homing magic bullets; a bullet that hits the player morphs them into a frog, after which she cackles and flies off. Far tougher than a common enemy, she takes many hits and dies with a dedicated death animation.

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

Witch()
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.
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 OnTileDeactivated() -> bool override
Called when corresponding tile should be deactivated.