resonance 1.0.1
Loading...
Searching...
No Matches
displaypointermsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
5class Player;
6
22class DisplayPointerMsg : public Message {
23public:
32
42 static Message *New();
43
58 DisplayPointerMsg(int nBar, int nPlayerValue, Player *pPlayer);
59
67 virtual Message *Clone();
68
76 virtual int Type();
77
85 virtual const char *GetName() const;
86
95 virtual void PrintExtra(std::ostream &stream) const;
96
97 // The three names come from GamePowerupPlacer, the one producer of the message, which writes
98 // the bar its cursor rests on, whatever Player::GetTrack() reports, and the player itself. The
99 // members are public because its two remove sites, 0x001ccdb8 in MoveCursor() and the one at
100 // 0x001ccfcc in DeployPowerup(), store mPlayerValue and mPlayer directly and do not
101 // set mBar.
102 int mBar;
105};
106
117extern int g_nDisplayPointerMsgType;
int mPlayerValue
Definition displaypointermsg.h:103
DisplayPointerMsg()
Construct a message with the payload unset.
Definition displaypointermsg.h:30
virtual int Type()
Report this message's registered identity.
DisplayPointerMsg(int nBar, int nPlayerValue, Player *pPlayer)
Report where a player's powerup pointer rests.
virtual void PrintExtra(std::ostream &stream) const
Write remove when mPlayerValue is -1, and otherwise tr# , mPlayerValue, :, the bar,...
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
int mBar
Definition displaypointermsg.h:102
Player * mPlayer
Definition displaypointermsg.h:104
static Message * New()
Produce a default-constructed message on the heap.
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
int g_nDisplayPointerMsgType
Identity that DisplayPointerMsg::Type() reports.