resonance 1.0.1
Loading...
Searching...
No Matches
axisregistermsg.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 AxisRegisterMsg : public Message {
26public:
35
47 AxisRegisterMsg(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
100 // PitchPicker::DispatchPriv() at 0x001c3220 reads the two members below directly with no
101 // accessor in the image, comparing mPlayer with its own player and scaling mValue by 1024.
103 float mValue;
104
112
120};
121
132extern int g_nAxisRegisterMsgType;
int g_nAxisRegisterMsgType
Identity that AxisRegisterMsg::Type() reports.
int mTrack
The player's track.
Definition axisregistermsg.h:119
AxisRegisterMsg(Player *pPlayer, float flValue, Sch::Tick position, int nTrack)
Report a register-axis movement.
Definition axisregistermsg.h:47
virtual int Type()
Report this message's registered identity.
Sch::Tick mPosition
The song position of the reading.
Definition axisregistermsg.h:111
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,...
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
AxisRegisterMsg()
Construct a message with the position at kTickInfinity and the rest unset.
Definition axisregistermsg.h:33
float mValue
Definition axisregistermsg.h:103
Player * mPlayer
Definition axisregistermsg.h:102
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