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
5
class
Player
;
6
24
class
AxeButtonMsg
:
public
Message
{
25
public
:
32
AxeButtonMsg
() {
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
88
int
mPressed
;
89
int
mRestartSpin
;
90
Player
*
mPlayer
;
91
};
92
103
extern
int
g_nAxeButtonMsgType
;
g_nAxeButtonMsgType
int g_nAxeButtonMsgType
Identity that AxeButtonMsg::Type() reports.
AxeButtonMsg::AxeButtonMsg
AxeButtonMsg()
Construct a message with the payload unset.
Definition
axebuttonmsg.h:32
AxeButtonMsg::GetName
virtual const char * GetName() const
Report this message's class name.
AxeButtonMsg::Type
virtual int Type()
Report this message's registered identity.
AxeButtonMsg::AxeButtonMsg
AxeButtonMsg(int nPressed, int nRestartSpin, Player *pPlayer)
Report a button change for a player.
Definition
axebuttonmsg.h:46
AxeButtonMsg::Clone
virtual Message * Clone()
Produce a heap copy of this message.
AxeButtonMsg::mPlayer
Player * mPlayer
Definition
axebuttonmsg.h:90
AxeButtonMsg::mRestartSpin
int mRestartSpin
Definition
axebuttonmsg.h:89
AxeButtonMsg::New
static Message * New()
Produce a default-constructed message on the heap.
AxeButtonMsg::mPressed
int mPressed
Definition
axebuttonmsg.h:88
Message
Base of every event the game passes between a MsgSource and a MsgSink.
Definition
message.h:41
Player
One participant in a session, local or remote.
Definition
player.h:39
message.h
src
msg
axebuttonmsg.h
Generated by
1.15.0