resonance 1.0.1
Loading...
Searching...
No Matches
advancesectionmsg.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 AdvanceSectionMsg : public Message {
25public:
32 static int sID;
33
42
53 AdvanceSectionMsg(Player *pPlayer, Sch::Tick position, int nTrack)
54 : mPlayer(pPlayer), mPosition(position), mTrack(nTrack) {
55 }
56
66 static Message *New();
67
75 virtual Message *Clone();
76
84 virtual int Type();
85
93 virtual const char *GetName() const;
94
97
98private:
99 int mTrack; // +0x0c
100};
virtual int Type()
Report this message's registered identity.
AdvanceSectionMsg()
Construct a message with the position at kTickInfinity and the rest unset.
Definition advancesectionmsg.h:40
Sch::Tick mPosition
Definition advancesectionmsg.h:96
static int sID
Identity that Type() reports, 113.
Definition advancesectionmsg.h:32
virtual const char * GetName() const
Report this message's class name.
Player * mPlayer
Definition advancesectionmsg.h:95
static Message * New()
Produce a default-constructed message on the heap.
AdvanceSectionMsg(Player *pPlayer, Sch::Tick position, int nTrack)
Report an advance-section press.
Definition advancesectionmsg.h:53
virtual Message * Clone()
Produce a heap copy of this message.
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