resonance 1.0.1
Loading...
Searching...
No Matches
rotleftmsg.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
23class RotLeftMsg : public Message {
24public:
32 }
33
43 RotLeftMsg(Player *pPlayer, Sch::Tick position) : mPlayer(pPlayer), mPosition(position) {
44 }
45
55 static Message *New();
56
64 virtual Message *Clone();
65
73 virtual int Type();
74
82 virtual const char *GetName() const;
83
86
92};
93
104extern int g_nRotLeftMsgType;
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
Sch::Tick mPosition
The song position of the rotation.
Definition rotleftmsg.h:91
RotLeftMsg(Player *pPlayer, Sch::Tick position)
Report a rotate-left press.
Definition rotleftmsg.h:43
RotLeftMsg()
Construct a message with the position at kTickInfinity and the player unset.
Definition rotleftmsg.h:31
virtual int Type()
Report this message's registered identity.
virtual Message * Clone()
Produce a heap copy of this message.
Player * mPlayer
The player to rotate.
Definition rotleftmsg.h:85
static Message * New()
Produce a default-constructed message on the heap.
virtual const char * GetName() const
Report this message's class name.
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
int g_nRotLeftMsgType
Identity that RotLeftMsg::Type() reports.