Jazz2::Actors::Collectibles::AmmoCollectible class

Ammo (collectible).

Weapon ammunition pickup found throughout levels and dropped by enemies. Collecting it replenishes the player's stock of the matching weapon (Bouncer, Freezer, Seeker, RF, Toaster, TNT, Pepper, etc.) and awards points. Crates and barrels in JJ2 break open to scatter several of these.

Base classes

class CollectibleBase
Base class of a collectible object.

Public static functions

static void Preload(const ActorActivationDetails& details)
Preloads all assets required by this actor.

Constructors, destructors, conversion operators

AmmoCollectible()
Creates a new instance.

Protected functions

auto OnActivatedAsync(const ActorActivationDetails& details) -> Task<bool> override
Called when the object is created and activated.
void OnCollect(Player* player) override
Called when the collectible is collected.