Jazz2::Actors::Solid::PinballPaddle class

Pinball paddle.

A flipper found in pinball-themed levels. It is solid ground until the player asks it to fire: standing or landing on one does nothing at all, and it kicks the player upward and away only while the jump key is held, awarding score. The launch strength depends on where along the paddle the player is standing, growing with the distance from the mounted end.

Base classes

class Jazz2::Actors::SolidObjectBase
Base class of a (pushable) solid object.

Public static functions

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

Constructors, destructors, conversion operators

PinballPaddle()
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.