resonance 1.0.1
Loading...
Searching...
No Matches
trackselectmsg.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
24class TrackSelectMsg : public Message {
25public:
36 static Message *New();
37
45 virtual Message *Clone();
46
54 virtual int Type();
55
63 virtual const char *GetName() const;
64
73 virtual void PrintExtra(std::ostream &stream) const;
74
81 int mTrack;
82
89 int mPlace;
90
98
108};
109
120extern unsigned int g_dwTrackSelectMsgType;
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
Event the game passes between a MsgSource and a MsgSink.
Definition trackselectmsg.h:24
virtual void PrintExtra(std::ostream &stream) const
Write the player's colour name, tr#, the two words at +0x04 and +0x08 joined by /,...
int mTrack
The selected track.
Definition trackselectmsg.h:81
virtual int Type()
Report this message's registered identity.
virtual Message * Clone()
Produce a heap copy of this message.
Player * mPlayer
Player the message is addressed to.
Definition trackselectmsg.h:107
virtual const char * GetName() const
Report this message's class name.
static Message * New()
Produce a default-constructed message on the heap.
int mPlace
The place on the track.
Definition trackselectmsg.h:89
Sch::Tick mPosition
The song position of the selection.
Definition trackselectmsg.h:97
unsigned int g_dwTrackSelectMsgType
Identity that TrackSelectMsg::Type() reports.