resonance 1.0.1
Loading...
Searching...
No Matches
playbackmodemsg.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 PlaybackModeMsg : public Message {
24public:
31 static int sID;
32
41
51 PlaybackModeMsg(Player *pPlayer, Sch::Tick position) : mPlayer(pPlayer), mPosition(position) {
52 }
53
63 static Message *New();
64
72 virtual Message *Clone();
73
81 virtual int Type();
82
90 virtual const char *GetName() const;
91
94};
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
PlaybackModeMsg()
Construct a message with the position at kTickInfinity and the player unset.
Definition playbackmodemsg.h:39
static int sID
Identity that Type() reports, 105.
Definition playbackmodemsg.h:31
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
PlaybackModeMsg(Player *pPlayer, Sch::Tick position)
Report a playback-mode press.
Definition playbackmodemsg.h:51
Player * mPlayer
Definition playbackmodemsg.h:92
virtual int Type()
Report this message's registered identity.
static Message * New()
Produce a default-constructed message on the heap.
Sch::Tick mPosition
Definition playbackmodemsg.h:93
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