Jazz2::Actors::Enemies::Caterpillar class

Caterpillar.

Stationary, invulnerable creature that inhales and then exhales clouds of smoke; the smoke drifts upward and leaves the player dizzy on contact. It cannot be killed, only briefly disoriented by shooting it, which interrupts its attack.

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

Caterpillar()
Creates a new instance.

Public functions

auto OnHandleCollision(ActorBase* other) -> bool override
Called when the object collides with another object.

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.