resonance 1.0.1
Loading...
Searching...
No Matches
allnotesoffmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/musemsg.h"
4
23class AllNotesOffMsg : public MuseMsg {
24public:
33
42 explicit AllNotesOffMsg(int nTick) : MuseMsg(nTick) {
43 }
44
54 static Message *New();
55
63 virtual Message *Clone();
64
72 virtual int Type();
73
81 virtual const char *GetName() const;
82
94 virtual int IsAllNotesOff();
95};
96
107extern unsigned int g_dwAllNotesOffMsgType;
unsigned int g_dwAllNotesOffMsgType
Identity that AllNotesOffMsg::Type() reports.
virtual Message * Clone()
Produce a heap copy of this message.
static Message * New()
Produce a default-constructed message on the heap.
virtual int Type()
Report this message's registered identity.
virtual const char * GetName() const
Report this message's class name.
AllNotesOffMsg()
Construct a message with the song position at kTickInfinity.
Definition allnotesoffmsg.h:31
AllNotesOffMsg(int nTick)
Construct a message at a song position.
Definition allnotesoffmsg.h:42
virtual int IsAllNotesOff()
Report that this message is an all-notes-off message.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
MuseMsg()
Start the song position at kTickInfinity.
Definition musemsg.h:38