SolidObjectBase class
#include <Jazz2/Actors/SolidObjectBase.h>
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
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.