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