Sucker class
#include <Jazz2/Actors/Enemies/Sucker.h>
Sucker.
Small plunger-like creature that shuffles along the ground in short bursts, popping and squeaking as it moves and turning at walls and ledges. It harms the player only on contact and is defeated by a single hit; it can also spawn deflating from a destroyed SuckerFloat.
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
- Sucker()
- 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.