Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
virtual int Type()
Report this message's registered identity.
int mRunFirstBar
Definition phrasecapturedmsg.h:130
virtual Message * Clone()
Produce a heap copy of this message.
int mTrack
Definition phrasecapturedmsg.h:132
static Message * New()
Produce a default-constructed message on the heap.
int mRunEndBar
Definition phrasecapturedmsg.h:131
int mFirstBar
The first bar of the captured phrase, which PrintExtra() writes ahead of --.
Definition phrasecapturedmsg.h:122
virtual void PrintExtra(std::ostream &stream) const
Write b , the bar range joined by --, tr# , the track, score , the score, juice ,...
int mScore
Definition phrasecapturedmsg.h:134
Player * mPlayer
Definition phrasecapturedmsg.h:133
virtual const char * GetName() const
Report this message's class name.
int mJuice
The juice the capture earned, a value SingleCatcher reads from its TrackData.
Definition phrasecapturedmsg.h:142
int mExtendsStreak
Non-zero when the capture extends the player's streak of consecutive captures.
Definition phrasecapturedmsg.h:151
PhraseCapturedMsg()
Construct a message with the payload unset.
Definition phrasecapturedmsg.h:35
PhraseCapturedMsg(int nFirstBar, int nEndBar, int nRunFirstBar, int nRunEndBar, int nTrack, Player *pPlayer, int nScore, int nJuice, int bExtendsStreak)
Report a captured phrase.
Definition phrasecapturedmsg.h:54
One participant in a session, local or remote.
Definition player.h:39
int g_nPhraseCapturedMsgType
Identity that PhraseCapturedMsg::Type() reports.