resonance 1.0.1
Loading...
Searching...
No Matches
playerleftgamemsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
18class PlayerLeftGameMsg : public Message {
19public:
29 static Message *New();
30
38 virtual Message *Clone();
39
47 virtual int Type();
48
56 virtual const char *GetName() const;
57
65 virtual void PrintExtra(std::ostream &stream) const;
66
67private:
68 int mPlayerId; // +0x04, with a title after the player the class name reports as leaving
69};
70
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Event the game passes between a MsgSource and a MsgSink.
Definition playerleftgamemsg.h:18
virtual void PrintExtra(std::ostream &stream) const
Write the word at +0x04 to a diagnostic stream as a number.
virtual Message * Clone()
Produce a heap copy of this message.
virtual int Type()
Report this message's registered identity.
static Message * New()
Produce a default-constructed message on the heap.
virtual const char * GetName() const
Report this message's class name.
int g_nPlayerLeftGameMsgType
Identity that PlayerLeftGameMsg::Type() reports.