resonance 1.0.1
Loading...
Searching...
No Matches
cleargemmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "mid/tick.h"
4#include "msg/message.h"
5
20class ClearGemMsg : public Message {
21public:
29 }
30
41 ClearGemMsg(Sch::Tick position, int nTrack, int nGem)
42 : mPosition(position), mTrack(nTrack), mGem(nGem) {
43 }
44
54 static Message *New();
55
63 virtual Message *Clone();
64
72 virtual int Type();
73
81 virtual const char *GetName() const;
82
84 int mTrack;
85 int mGem;
86};
87
98extern int g_nClearGemMsgType;
int mTrack
Definition cleargemmsg.h:84
int mGem
Definition cleargemmsg.h:85
static Message * New()
Produce a default-constructed message on the heap.
ClearGemMsg(Sch::Tick position, int nTrack, int nGem)
Clear one gem.
Definition cleargemmsg.h:41
Sch::Tick mPosition
Definition cleargemmsg.h:83
virtual const char * GetName() const
Report this message's class name.
virtual Message * Clone()
Produce a heap copy of this message.
virtual int Type()
Report this message's registered identity.
ClearGemMsg()
Construct a message with the position at kTickInfinity and the rest unset.
Definition cleargemmsg.h:28
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Song position in MIDI ticks, printed as measure, beat, and tick.
Definition tick.h:70
int g_nClearGemMsgType
Identity that ClearGemMsg::Type() reports.