resonance 1.0.1
Loading...
Searching...
No Matches
bumpmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "msg/cmdmsg.h"
6
7class Player;
8
20class BumpMsg : public CmdMsg {
21public:
31 static Message *New();
32
40 virtual Message *Clone();
41
49 virtual int Type();
50
58 virtual const char *GetName() const;
59
67 virtual void PrintExtra(std::ostream &stream) const;
68
69private:
70 // Both titles follow the bar and track that BumpPacket includes in the same order.
71 int mBar; // +0x08
72 int mTrack; // +0x0c
73 Player *mPlayer; // +0x10
74};
75
86extern int g_nBumpMsgType;
int g_nBumpMsgType
Identity that BumpMsg::Type() reports.
Event the game passes between a MsgSource and a MsgSink.
Definition bumpmsg.h:20
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
virtual void PrintExtra(std::ostream &stream) const
Write the player's colour name to a diagnostic stream.
virtual int Type()
Report this message's registered identity.
static Message * New()
Produce a message with a zero result on the heap.
CmdMsg()
Clear the result word.
Definition cmdmsg.h:37
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