resonance 1.0.1
Loading...
Searching...
No Matches
phraseneutralizer.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/msgsink.h"
4#include "app/msgsource.h"
5#include "game/trackdata.h"
6#include "gs/phrasemgr.h"
7#include "msg/message.h"
8#include "msg/neutralizemsg.h"
9
23class PhraseNeutralizer : public MsgSource, public MsgSink {
24public:
31 PhraseNeutralizer(const TrackData *pTrackData, PhraseMgr *pPhraseMgr);
32
43 virtual void DispatchPriv(Message *pMsg);
44
45private:
56 void PostTrackNeutralizedMsg(NeutralizeMsg *pMsg);
57
58 int mReservedWords[5]; // +0x18, neither read nor written by any routine
59 int mTrack; // +0x2c, copied from TrackData::mIndex
60 PhraseMgr *mPhraseMgr; // +0x30
61 int mReservedWord; // +0x34, neither read nor written by any routine
62 const TrackData *mTrackData; // +0x38
63};
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:41
Receiver of engine messages.
Definition msgsink.h:37
Sender of engine messages, which stores the list of sinks that receive them.
Definition msgsource.h:26
Event the game passes between a MsgSource and a MsgSink.
Definition neutralizemsg.h:24
Owner of the gem phrases on one track, and the seam between the network and the gems.
Definition phrasemgr.h:51
virtual void DispatchPriv(Message *pMsg)
Act on a message.
PhraseNeutralizer(const TrackData *pTrackData, PhraseMgr *pPhraseMgr)
Converted events of one track of a level.
Definition trackdata.h:52