Jazz2::Actors::Environment::Bird class

Bird.

Companion bird (the red Chuck or the yellow Birdy) freed from a bird cage that follows its owning player around. It automatically attacks nearby enemies—Chuck fires shots while Birdy dives at them—and flies away if abandoned.

Base classes

class Jazz2::Actors::ActorBase
Base class of an object.

Public static functions

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

Constructors, destructors, conversion operators

Bird()
Creates a new instance.

Public functions

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

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 OnAnimationFinished() override
Called when an animation finished.