Jazz2::Actors::SolidObjectBase class

Base class of a (pushable) solid object.

Base for solid objects that the player and other actors can stand on and that block movement. Depending on its flags, a solid object can act as a one-way platform and can be pushed horizontally by the player.

Base classes

class ActorBase
Base class of an object.

Derived classes

class BirdCage
Bird cage.
class GenericContainer
Base class of an item container.
class MovingPlatform
Moving platform.
class PinballBumper
Pinball bumper.
class PinballPaddle
Pinball paddle.
class PowerUpMorphMonitor
Power-up morph monitor.
class PowerUpShieldMonitor
Power-up shield monitor.
class PowerUpWeaponMonitor
Power-up weapon monitor.
class PushableBox
Pushable box.
class TriggerCrate
Trigger crate.

Constructors, destructors, conversion operators

SolidObjectBase()
Creates a new instance.
~SolidObjectBase()

Public functions

auto Push(bool left, float timeMult) -> float
Pushes the object in a given direction and returns the resulting horizontal speed (0 if it cannot move).

Public variables

bool IsOneWay
Whether the object can be passed through from below (i.e. acts as a one-way platform).
bool Movable
Whether the object can be pushed by a player.

Protected functions

void OnUpdate(float timeMult) override
Called every frame to update the object state.

Constants

static float PushSpeed protected constexpr
Horizontal speed applied while the object is being pushed.
static float PushDecayTime protected constexpr
Time (in frames) the push persists after the player stops pushing.