resonance 1.0.1
Loading...
Searching...
No Matches
beginphrasecatchmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
5class Player;
6
25public:
34
46 BeginPhraseCatchMsg(Player *pPlayer, int nPoints, int nMultiplier)
47 : mPlayer(pPlayer), mPoints(nPoints), mMultiplier(nMultiplier) {
48 }
49
59 static Message *New();
60
68 virtual Message *Clone();
69
77 virtual int Type();
78
86 virtual const char *GetName() const;
87
89 int mPoints;
91};
92
int g_nBeginPhraseCatchMsgType
Identity that BeginPhraseCatchMsg::Type() reports.
static Message * New()
Produce a default-constructed message on the heap.
int mMultiplier
Definition beginphrasecatchmsg.h:90
BeginPhraseCatchMsg()
Construct a message with the payload unset.
Definition beginphrasecatchmsg.h:32
int mPoints
Definition beginphrasecatchmsg.h:89
Player * mPlayer
Definition beginphrasecatchmsg.h:88
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
BeginPhraseCatchMsg(Player *pPlayer, int nPoints, int nMultiplier)
Report the start of a phrase catch.
Definition beginphrasecatchmsg.h:46
virtual int Type()
Report this message's registered identity.
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