resonance 1.0.1
Loading...
Searching...
No Matches
autocatchmsg.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
25class AutoCatchMsg : public CmdMsg {
26public:
36 static Message *New();
37
45 virtual Message *Clone();
46
54 virtual int Type();
55
63 virtual const char *GetName() const;
64
73 virtual void PrintExtra(std::ostream &stream) const;
74
75 int mBar;
76 int mTrack;
78};
79
90extern int g_nAutoCatchMsgType;
int g_nAutoCatchMsgType
Identity that AutoCatchMsg::Type() reports.
Event the game passes between a MsgSource and a MsgSink.
Definition autocatchmsg.h:25
virtual void PrintExtra(std::ostream &stream) const
Write tr#, the track, p#, the player's identifier, a space, and the word at +0x08 to a diagnostic st...
virtual Message * Clone()
Produce a heap copy of this message.
int mTrack
Definition autocatchmsg.h:76
Player * mPlayer
Definition autocatchmsg.h:77
virtual const char * GetName() const
Report this message's class name.
static Message * New()
Produce a message with a zero result on the heap.
virtual int Type()
Report this message's registered identity.
int mBar
Definition autocatchmsg.h:75
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