Turtle class
#include <Jazz2/Actors/Enemies/Turtle.h>
Turtle.
Walks back and forth on the ground, withdrawing into its shell to turn at walls and, on harder difficulties, to dodge incoming shots, and snapping at players that get directly in front of it. An ordinary hit knocks it out of its shell, leaving a sliding TurtleShell behind; a Xmas variant is available.
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
- Turtle()
- 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 OnPerish(ActorBase* collider) -> bool override
- Called when the object has no health left and should perish.