resonance 1.0.1
Loading...
Searching...
No Matches
caughtpowerbarmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/hudutil.h"
4#include "msg/message.h"
5
6class Player;
7
22class CaughtPowerbarMsg : public Message {
23public:
33 static Message *New();
34
42 virtual Message *Clone();
43
51 virtual int Type();
52
60 virtual const char *GetName() const;
61
69 virtual void PrintExtra(std::ostream &stream) const;
70
73};
74
int g_nCaughtPowerbarMsgType
Identity that CaughtPowerbarMsg::Type() reports.
Event the game passes between a MsgSource and a MsgSink.
Definition caughtpowerbarmsg.h:22
PowerupType mKind
Definition caughtpowerbarmsg.h:71
virtual const char * GetName() const
Report this message's class name.
Player * mPlayer
Definition caughtpowerbarmsg.h:72
virtual int Type()
Report this message's registered identity.
virtual Message * Clone()
Produce a heap copy of this message.
static Message * New()
Produce a default-constructed message on the heap.
virtual void PrintExtra(std::ostream &stream) const
Write the item kind to a diagnostic stream as a number.
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
PowerupType
Kinds of item the head-up display labels, in the order HudPowerupName() maps them.
Definition hudutil.h:13