45 typedef std::bitset<kEffectCount>
Effects;
138 int Has(
int nField)
const;
int g_nBarStatusMsgType
Identity that BarStatusMsg::Type() reports.
int mBar
Definition barstatusmsg.h:188
int mTrack
Definition barstatusmsg.h:189
BarStatusMsg(int nBar, int nTrack, Player *pPlayer)
Report a bar's player, with no other optional field set.
Definition barstatusmsg.h:68
Field
Bits of mFlags, one per optional field.
Definition barstatusmsg.h:50
@ kFieldEnabled
Definition barstatusmsg.h:52
@ kFieldPlayer
Definition barstatusmsg.h:51
@ kFieldEffects
Definition barstatusmsg.h:54
@ kFieldPowerup
Definition barstatusmsg.h:53
BarStatusMsg()
Start with no optional field set and the effect mask clear.
Definition barstatusmsg.h:77
int Has(int nField) const
Report whether one optional field is set.
virtual Message * Clone()
Produce a heap copy of this message.
static Message * New()
Build an empty message on the heap for the message registry.
int mEnabled
Non-zero when the bar is enabled.
Definition barstatusmsg.h:204
int mPowerup
The powerup kind on the bar.
Definition barstatusmsg.h:219
int mRefreshing
Non-zero when PhraseMgr posted the message while refreshing bars.
Definition barstatusmsg.h:212
virtual void PrintExtra(std::ostream &stream) const
Write the bar, the track, and each set optional field.
Player * GetPlayer() const
Report the player field.
Definition barstatusmsg.h:147
Effects mEffects
One bit per effect kind.
Definition barstatusmsg.h:226
@ kEffectCount
Definition barstatusmsg.h:37
int GetEnabled() const
Report the enabled field.
Definition barstatusmsg.h:159
virtual const char * GetName() const
Report this message's class name.
int GetPowerup() const
Report the powerup field.
Definition barstatusmsg.h:171
int mFlags
Definition barstatusmsg.h:228
Player * mPlayer
The player whose track the bar belongs to.
Definition barstatusmsg.h:197
Effects GetEffects() const
Report the effect mask.
Definition barstatusmsg.h:183
virtual int Type()
Report this message's registered identity.
std::bitset< kEffectCount > Effects
One bit per effect kind.
Definition barstatusmsg.h:45
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
One participant in a session, local or remote.
Definition player.h:39