resonance 1.0.1
Loading...
Searching...
No Matches
cripplemsg.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 CrippleMsg : public CmdMsg {
26public:
33 static int sID;
34
44 static Message *New();
45
53 virtual Message *Clone();
54
62 virtual int Type();
63
71 virtual const char *GetName() const;
72
80 virtual void PrintExtra(std::ostream &stream) const;
81
83 int mTrack;
90 int mBar;
91};
CmdMsg()
Clear the result word.
Definition cmdmsg.h:37
Event the game passes between a MsgSource and a MsgSink.
Definition cripplemsg.h:25
Player * mPlayer
Definition cripplemsg.h:82
virtual void PrintExtra(std::ostream &stream) const
Write tr#, the track, p#, and the player's identifier to a diagnostic stream.
virtual int Type()
Report this message's registered identity.
int mBar
The bar the crippler is deployed at.
Definition cripplemsg.h:90
int mTrack
Definition cripplemsg.h:83
static int sID
Identity that Type() reports.
Definition cripplemsg.h:33
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 Message * Clone()
Produce a heap copy of this message.
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