resonance 1.0.1
Loading...
Searching...
No Matches
powerupcollectioni.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/hudutil.h"
4#include "app/msgsource.h"
5
30public:
36
42
52 virtual void Add(PowerupType type);
53
64 virtual void SelectRelative(int nDelta);
65
75 virtual void Select(int nIndex);
76
90 virtual void Deploy(int nTrack, int nBar);
91
103 virtual int HasSelection() const;
104
113 virtual void SendState() const;
114};
Sender of engine messages, which stores the list of sinks that receive them.
Definition msgsource.h:26
virtual int HasSelection() const
Report whether an entry is selected.
virtual void SelectRelative(int nDelta)
Move the selection by one step, skipping an empty entry.
virtual ~PowerupCollectionI()
virtual void SendState() const
Send the whole state again, for a listener that has just registered.
virtual void Add(PowerupType type)
Store one powerup of the requested kind.
virtual void Select(int nIndex)
Select one entry by index.
virtual void Deploy(int nTrack, int nBar)
Deploy the selected powerup and account for the one used.
PowerupType
Kinds of item the head-up display labels, in the order HudPowerupName() maps them.
Definition hudutil.h:13