resonance 1.0.1
Loading...
Searching...
No Matches
neutralizemsg.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
24class NeutralizeMsg : public CmdMsg {
25public:
32 static int sID;
33
43 static Message *New();
44
52 virtual Message *Clone();
53
61 virtual int Type();
62
70 virtual const char *GetName() const;
71
79 virtual void PrintExtra(std::ostream &stream) const;
80
81 int mBar;
82 int mTrack;
84};
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
Event the game passes between a MsgSource and a MsgSink.
Definition neutralizemsg.h:24
virtual const char * GetName() const
Report this message's class name.
virtual int Type()
Report this message's registered identity.
static Message * New()
Produce a message with a zero result on the heap.
static int sID
Identity that Type() reports.
Definition neutralizemsg.h:32
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.
Player * mPlayer
Definition neutralizemsg.h:83
int mBar
Definition neutralizemsg.h:81
int mTrack
Definition neutralizemsg.h:82
One participant in a session, local or remote.
Definition player.h:39