resonance 1.0.1
Loading...
Searching...
No Matches
eraseoffmsg.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
23class EraseOffMsg : public Message {
24public:
35 static Message *New();
36
44 virtual Message *Clone();
45
53 virtual int Type();
54
62 virtual const char *GetName() const;
63
72 virtual void PrintExtra(std::ostream &stream) const;
73
74private:
75 Player *mPlayer; // +0x04
76 Sch::Tick mPosition; // +0x08
77 int mTrack; // +0x0c, with a title after the track EraseMsg stores at the same offset
78};
79
90extern int g_nEraseOffMsgType;
Event the game passes between a MsgSource and a MsgSink.
Definition eraseoffmsg.h:23
virtual int Type()
Report this message's registered identity.
virtual void PrintExtra(std::ostream &stream) const
Write the position and the player's colour name, separated by a space, to a diagnostic stream.
static Message * New()
Produce a default-constructed message on the heap.
virtual Message * Clone()
Produce a heap copy of this message.
virtual const char * GetName() const
Report this message's class name.
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
int g_nEraseOffMsgType
Identity that EraseOffMsg::Type() reports.