resonance 1.0.1
Loading...
Searching...
No Matches
axenewgemmaker.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 "msg/message.h"
7
8class Player;
9class StdMidiMsg;
10
25class AxeNewGemMaker : public MsgSink, public MsgSource {
26public:
32 explicit AxeNewGemMaker(const TrackData *pTrackData);
33
45 virtual void DispatchPriv(Message *pMsg);
46
47private:
58 void PostGemMessages(StdMidiMsg *pMsg);
59
60 int mTrack; // +0x18, copied from TrackData::mIndex
61 const TrackData *mTrackData; // +0x1c, not read by any recovered routine
62 int mStripId; // +0x20, the open sustain strip, or zero
63 float mValue; // +0x24, the axis value, 0.5 at first
64 Player *mPlayer; // +0x28, NullPlayer::sInstance until a TrackSelectMsg
65};
virtual void DispatchPriv(Message *pMsg)
Act on a message.
AxeNewGemMaker(const TrackData *pTrackData)
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
One participant in a session, local or remote.
Definition player.h:39
Event the game passes between a MsgSource and a MsgSink.
Definition stdmidimsg.h:27
Converted events of one track of a level.
Definition trackdata.h:52