resonance 1.0.1
Loading...
Searching...
No Matches
axisypowmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "mid/tick.h"
6#include "msg/message.h"
7
8class Player;
9
24class AxisYPowMsg : public Message {
25public:
33 }
34
45 AxisYPowMsg(Player *pPlayer, int nValue, Sch::Tick position)
46 : mPlayer(pPlayer), mValue(nValue), mPosition(position) {
47 }
48
59 static Message *New();
60
68 virtual Message *Clone();
69
77 virtual int Type();
78
86 virtual const char *GetName() const;
87
96 virtual void PrintExtra(std::ostream &stream) const;
97
98 // Public because LocalPlayer::DispatchPriv() reads both directly at `0x0011ee04` and
99 // `0x0011ee20`, and the image has no accessor.
101 int mValue;
102
103private:
104 Sch::Tick mPosition; // +0x0c
105};
106
117extern int g_nAxisYPowMsgType;
int g_nAxisYPowMsgType
Identity that AxisYPowMsg::Type() reports.
virtual const char * GetName() const
Report this message's class name.
virtual int Type()
Report this message's registered identity.
Player * mPlayer
Definition axisypowmsg.h:100
virtual void PrintExtra(std::ostream &stream) const
Write the position, the player's colour name, and the word at +0x08, separated by spaces,...
AxisYPowMsg()
Construct a message with the position at kTickInfinity and the rest unset.
Definition axisypowmsg.h:32
static Message * New()
Produce a default-constructed message on the heap.
virtual Message * Clone()
Produce a heap copy of this message.
AxisYPowMsg(Player *pPlayer, int nValue, Sch::Tick position)
Report a vertical powerup-axis movement.
Definition axisypowmsg.h:45
int mValue
Definition axisypowmsg.h:101
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
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70