RollingRock class
Rolling rock.
Large boulder hazard that stays put until triggered, then rolls and bounces through the level under gravity. While rolling it crushes the player on contact and shoves them aside, and can collide with other rolling rocks.
Base classes
- class Jazz2::Actors::Enemies::EnemyBase
- Base class of an enemy.
Public static functions
- static void Preload(const ActorActivationDetails& details)
- Preloads all assets required by this actor.
Constructors, destructors, conversion operators
- RollingRock()
- 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.
- auto OnHandleCollision(ActorBase* other) -> bool override
- Called when the object collides with another object.
-
void OnTriggeredEvent(EventType eventType,
std::
uint8_t* eventParams) override - Called when an event is triggered.