resonance 1.0.1
Loading...
Searching...
No Matches
tracksonmsg.h
Go to the documentation of this file.
1#pragma once
2
3#include "msg/message.h"
4
18class TracksOnMsg : public Message {
19public:
27 }
28
39 TracksOnMsg(int nBar, int nTracks) : mBar(nBar), mTracks(nTracks) {
40 }
41
51 static Message *New();
52
60 virtual Message *Clone();
61
69 virtual int Type();
70
78 virtual const char *GetName() const;
79
88 virtual void PrintExtra(std::ostream &stream) const;
89
90 int mBar;
91 int mTracks;
92};
93
104extern unsigned int g_dwTracksOnMsgType;
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
virtual void PrintExtra(std::ostream &stream) const
Write bar , the word at +0x04, tracks , and the word at +0x08 to a diagnostic stream.
int mBar
Definition tracksonmsg.h:90
TracksOnMsg()
Construct a message with the payload unset.
Definition tracksonmsg.h:26
virtual Message * Clone()
Produce a heap copy of this message.
virtual const char * GetName() const
Report this message's class name.
int mTracks
Definition tracksonmsg.h:91
static Message * New()
Produce a default-constructed message on the heap.
virtual int Type()
Report this message's registered identity.
TracksOnMsg(int nBar, int nTracks)
Report how many tracks are on from a bar.
Definition tracksonmsg.h:39
unsigned int g_dwTracksOnMsgType
Identity that TracksOnMsg::Type() reports.