resonance 1.0.1
Loading...
Searching...
No Matches
axisfxmsg.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
25class AxisFXMsg : public Message {
26public:
34 }
35
47 AxisFXMsg(Player *pPlayer, float flValue, Sch::Tick position, int nTrack)
48 : mPlayer(pPlayer), mValue(flValue), mPosition(position), mTrack(nTrack) {
49 }
50
61 static Message *New();
62
70 virtual Message *Clone();
71
79 virtual int Type();
80
88 virtual const char *GetName() const;
89
98 virtual void PrintExtra(std::ostream &stream) const;
99
100private:
101 Player *mPlayer; // +0x04
102
103public:
110 float mValue;
111
112private:
113 Sch::Tick mPosition; // +0x0c
114 int mTrack; // +0x10
115};
116
127extern int g_nAxisFXMsgType;
int g_nAxisFXMsgType
Identity that AxisFXMsg::Type() reports.
virtual Message * Clone()
Produce a heap copy of this message.
AxisFXMsg()
Construct a message with the position at kTickInfinity and the rest unset.
Definition axisfxmsg.h:33
virtual int Type()
Report this message's registered identity.
virtual const char * GetName() const
Report this message's class name.
AxisFXMsg(Player *pPlayer, float flValue, Sch::Tick position, int nTrack)
Report an effect-axis movement.
Definition axisfxmsg.h:47
static Message * New()
Produce a default-constructed message on the heap.
virtual void PrintExtra(std::ostream &stream) const
Write the position, the player's colour name, and the float at +0x08, separated by spaces,...
float mValue
The axis value.
Definition axisfxmsg.h:110
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