132 virtual void Deploy(
int nTrack,
int nBar);
152 std::vector<PowCount> mEntries;
Player driven by a controller on this machine.
Definition localplayer.h:44
One configured kind, with the number of them stored.
Definition powerupcollection.h:40
Powerup * mPowerup
Definition powerupcollection.h:57
int mCount
Definition powerupcollection.h:58
bool operator==(PowerupType type) const
Report whether the entry holds a powerup of one kind.
Definition powerupcollection.h:53
virtual void Add(PowerupType type)
Increase the count of the entry whose kind matches, up to nine.
virtual int HasSelection() const
Report whether an entry is selected.
virtual void SelectRelative(int nDelta)
Move the selection by nDelta, wrapping, and stop at the first entry with a count above zero.
virtual void Deploy(int nTrack, int nBar)
Deploy the selected powerup and spend one of them.
virtual void Select(int nIndex)
Select one entry by index, without checking its count.
PowerupCollection(LocalPlayer *pOwner, int bUnlimited)
Build one entry for every kind the configuration lists.
virtual void SendState() const
Send one PowerupCountMsg for every non-empty entry, then one ChoosePowerupMsg.
virtual ~PowerupCollection()
Delete every stored powerup.
Base of the thirteen powerups a player can store and deploy.
Definition powerup.h:27
PowerupType
Kinds of item the head-up display labels, in the order HudPowerupName() maps them.
Definition hudutil.h:13