resonance 1.0.1
Loading...
Searching...
No Matches
axisxpowmsg.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 AxisXPowMsg : public Message {
25public:
33 }
34
45 AxisXPowMsg(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
98private:
99 Player *mPlayer; // +0x04
100 int mValue; // +0x08
101 Sch::Tick mPosition; // +0x0c
102};
103
114extern int g_nAxisXPowMsgType;
int g_nAxisXPowMsgType
Identity that AxisXPowMsg::Type() reports.
AxisXPowMsg()
Construct a message with the position at kTickInfinity and the rest unset.
Definition axisxpowmsg.h:32
static Message * New()
Produce a default-constructed message on the heap.
virtual int Type()
Report this message's registered identity.
AxisXPowMsg(Player *pPlayer, int nValue, Sch::Tick position)
Report a horizontal powerup-axis movement.
Definition axisxpowmsg.h:45
virtual void PrintExtra(std::ostream &stream) const
Write the position, the player's colour name, and the word at +0x08, separated by spaces,...
virtual Message * Clone()
Produce a heap copy of this message.
virtual const char * GetName() const
Report this message's class name.
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