resonance 1.0.1
Loading...
Searching...
No Matches
caughtbarmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
5class Player;
6
20class CaughtBarMsg : public Message {
21public:
29 }
30
40 CaughtBarMsg(Player *pPlayer, int nBar) : mPlayer(pPlayer), mBar(nBar) {
41 }
42
52 static Message *New();
53
61 virtual Message *Clone();
62
70 virtual int Type();
71
79 virtual const char *GetName() const;
80
81 // Public because LocalPlayer::DispatchPriv() reads both directly at `0x0011efa0` and
82 // `0x0011efac`, and the image has no accessor.
84 int mBar;
85};
86
97extern int g_nCaughtBarMsgType;
int g_nCaughtBarMsgType
Identity that CaughtBarMsg::Type() reports.
static Message * New()
Produce a default-constructed message on the heap.
int mBar
Definition caughtbarmsg.h:84
virtual int Type()
Report this message's registered identity.
CaughtBarMsg()
Construct a message with the payload unset.
Definition caughtbarmsg.h:28
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
Player * mPlayer
Definition caughtbarmsg.h:83
CaughtBarMsg(Player *pPlayer, int nBar)
Report a bar a player caught.
Definition caughtbarmsg.h:40
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