PushableBox class
#include <Jazz2/Actors/Solid/PushableBox.h>
Pushable box.
A solid rock or crate the player can push horizontally by walking into it, typically to reach higher ledges or solve simple block puzzles. It cannot be destroyed by weapons (shots ricochet off it), though it can be frozen.
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
- PushableBox()
- 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.
- auto GetIceShrapnelScale() const -> float override
- Returns scale of ice shrapnels.