TurtleTube class
#include <Jazz2/Actors/Enemies/TurtleTube.h>
Tube turtle.
Turtle riding an inner tube that bobs on the water surface, drifting gently side to side. If the water level drops below it, it falls under gravity and freezes its animation until it floats again. Harms the player on contact and takes a couple of hits to defeat.
Base classes
- class 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
- TurtleTube()
- 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.
- auto OnPerish(ActorBase* collider) -> bool override
- Called when the object has no health left and should perish.