resonance 1.0.1
Loading...
Searching...
No Matches
phraseeraser.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/msgsink.h"
4#include "app/msgsource.h"
5#include "msg/erasemsg.h"
6#include "msg/message.h"
7
8class PhraseMgr;
9class Player;
10
22class PhraseEraser : public MsgSource, public MsgSink {
23public:
36 PhraseEraser(int nTrack,
37 int nSecondArgument,
38 PhraseMgr *pPhraseMgr,
39 int nFourthArgument,
40 int nFifthArgument);
41
52 virtual void DispatchPriv(Message *pMsg);
53
54private:
64 void OnEraseMsg(EraseMsg *pMsg);
65
74 void EraseBar(int nBar);
75
76 int mActive; // +0x18
77 int mFirstBar; // +0x1c
78 int mLastBar; // +0x20
79 Player *mPlayer; // +0x24
80 int mFifthArgument; // +0x28
81 int mTrack; // +0x2c
82 PhraseMgr *mPhraseMgr; // +0x30
83 int mSecondArgument; // +0x34
84 int mFourthArgument; // +0x38
85};
Event the game passes between a MsgSource and a MsgSink.
Definition erasemsg.h:28
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
virtual void DispatchPriv(Message *pMsg)
Act on a message.
PhraseEraser(int nTrack, int nSecondArgument, PhraseMgr *pPhraseMgr, int nFourthArgument, int nFifthArgument)
Store the five arguments.
Owner of the gem phrases on one track, and the seam between the network and the gems.
Definition phrasemgr.h:51
One participant in a session, local or remote.
Definition player.h:39