resonance 1.0.1
Loading...
Searching...
No Matches
phrasemsg.h
Go to the documentation of this file.
1#pragma once
2
3#include <iostream>
4
5#include "msg/message.h"
6
7class Phrase;
8
24class PhraseMsg : public Message {
25public:
32 static int sID;
33
43 static Message *New();
44
52 virtual Message *Clone();
53
61 virtual int Type();
62
70 virtual const char *GetName() const;
71
79 virtual void PrintExtra(std::ostream &stream) const;
80
86 int mBar;
87
94 int mTrack;
95
102};
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Event the game passes between a MsgSource and a MsgSink.
Definition phrasemsg.h:24
static Message * New()
Produce a default-constructed message on the heap.
static int sID
Identity that Type() reports.
Definition phrasemsg.h:32
int mBar
The bar of the phrase.
Definition phrasemsg.h:86
virtual const char * GetName() const
Report this message's class name.
virtual void PrintExtra(std::ostream &stream) const
Write the phrase's address, [, the word at +0x04, and ] to a diagnostic stream.
virtual int Type()
Report this message's registered identity.
virtual Message * Clone()
Produce a heap copy of this message.
Phrase * mPhrase
The phrase.
Definition phrasemsg.h:101
int mTrack
The track.
Definition phrasemsg.h:94
One phrase of a track, with its gems, its player, and the messages and values scheduled across it.
Definition phrase.h:38