Jazz2::Actors::Collectibles::CollectibleBase class

Base class of a collectible object.

Base classes

class Jazz2::Actors::ActorBase
Base class of an object.

Derived classes

class AmmoCollectible
class CarrotCollectible
class CarrotFlyCollectible
class CarrotInvincibleCollectible
class CoinCollectible
class FastFireCollectible
class FoodCollectible
class GemCollectible
class GemRing
class OneUpCollectible
class Stopwatch

Constructors, destructors, conversion operators

CollectibleBase()

Public functions

auto OnHandleCollision(std::shared_ptr<ActorBase> other) -> bool override
Called when the object collides with another object.

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 OnEmitLights(SmallVectorImpl<LightEmitter>& lights) override
Called when emitting lights.
void OnCollect(Player* player) virtual
Called when the collectible is collected.
void SetFacingDirection(bool inverse = false)
Sets facing direction.

Protected static variables

static std::int32_t IlluminateLightCount constexpr