resonance 1.0.1
Loading...
Searching...
No Matches
multiplierstatemsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
5class Player;
6
24public:
33
44 MultiplierStateMsg(Player *pPlayer, int nMultiplier, int nBonus)
45 : mPlayer(pPlayer), mMultiplier(nMultiplier), mBonus(nBonus) {
46 }
47
57 static Message *New();
58
66 virtual Message *Clone();
67
75 virtual int Type();
76
84 virtual const char *GetName() const;
85
88 int mBonus;
89};
90
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Player * mPlayer
Definition multiplierstatemsg.h:86
int mMultiplier
Definition multiplierstatemsg.h:87
MultiplierStateMsg()
Construct a message with every payload word indeterminate.
Definition multiplierstatemsg.h:31
virtual const char * GetName() const
Report this message's class name.
int mBonus
Definition multiplierstatemsg.h:88
virtual Message * Clone()
Produce a heap copy of this message.
virtual int Type()
Report this message's registered identity.
MultiplierStateMsg(Player *pPlayer, int nMultiplier, int nBonus)
Report a player's multiplier.
Definition multiplierstatemsg.h:44
static Message * New()
Produce a default-constructed message on the heap.
One participant in a session, local or remote.
Definition player.h:39
int g_nMultiplierStateMsgType
Identity that MultiplierStateMsg::Type() reports.