Sparks class
#include <Jazz2/Actors/Enemies/Sparks.h>
Sparks.
Floating ghost-like enemy that hovers idly until a player approaches, then slowly drifts toward them to attack, chasing faster on higher difficulties and ignoring invulnerable players. It stays above the water and is defeated by a single hit.
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
- Sparks()
- 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.