resonance 1.0.1
Loading...
Searching...
No Matches
pitchmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "mid/tick.h"
4#include "msg/message.h"
5
6class Player;
7
24class PitchMsg : public Message {
25public:
35 static Message *New();
36
44 virtual Message *Clone();
45
53 virtual int Type();
54
62 virtual const char *GetName() const;
63
70
71 int mTrack;
72 int mGem;
74};
75
86extern int g_nPitchMsgType;
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Event the game passes between a MsgSource and a MsgSink.
Definition pitchmsg.h:24
virtual int Type()
Report this message's registered identity.
int mTrack
Definition pitchmsg.h:71
virtual Message * Clone()
Produce a heap copy of this message.
static Message * New()
Produce a default-constructed message on the heap.
int mGem
Definition pitchmsg.h:72
virtual const char * GetName() const
Report this message's class name.
Player * mPlayer
Definition pitchmsg.h:73
int mTick
The quantised song position, in MIDI ticks.
Definition pitchmsg.h:69
One participant in a session, local or remote.
Definition player.h:39
int g_nPitchMsgType
Identity that PitchMsg::Type() reports.
constexpr int kTickInfinity
Position the printer renders as positive infinity.
Definition tick.h:15