resonance 1.0.1
Loading...
Searching...
No Matches
toggleghostmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
5class Player;
6
20class ToggleGhostMsg : public Message {
21public:
31 static Message *New();
32
40 virtual Message *Clone();
41
49 virtual int Type();
50
58 virtual const char *GetName() const;
59
69
79 int mOn;
80};
81
92extern int g_nToggleGhostMsgType;
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
Event the game passes between a MsgSource and a MsgSink.
Definition toggleghostmsg.h:20
virtual const char * GetName() const
Report this message's class name.
Player * mPlayer
Player the message is about.
Definition toggleghostmsg.h:68
virtual int Type()
Report this message's registered identity.
int mOn
Non-zero to light the player's track display, zero to darken it.
Definition toggleghostmsg.h:79
static Message * New()
Produce a default-constructed message on the heap.
virtual Message * Clone()
Produce a heap copy of this message.
int g_nToggleGhostMsgType
Identity that ToggleGhostMsg::Type() reports.