wavelength 1.0.0
Loading...
Searching...
No Matches
remix.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/btnevent.h"
5#include "game/gamedb.h"
7#include "game/remixlogic.h"
8#include "game/rotateevent.h"
9#include "game/stickevent.h"
10#include "game/world.h"
11
19class Remix : public World {
20public:
28
35 ~Remix() override;
36
44 int GetRuleSet() const override {
46 }
47
55 bool IsFinished() override;
56
64 void Handle(const RotateEvent &event) override;
65
73 void Handle(const PlayNoteEvent &event) override;
74
82 void Handle(const BtnEvent<8> &event) override;
83
91 void Handle(const StickEvent<2> &event) override;
92
100 void Handle(const StickEvent<6> &event) override;
101
109 void Handle(const BtnEvent<3> &event) override;
110
118 void Handle([[maybe_unused]] const BtnEvent<4> &event) override {
119 }
120
128 void Handle([[maybe_unused]] const BtnEvent<5> &event) override {
129 }
130
138 void Handle(const ChangeSectionEvent &event) override;
139
147 void Handle(const BtnEvent<9> &event) override;
148
156 void Handle(const BtnEvent<10> &event) override;
157
167 void BeginAssetLoad() override;
168
175 void PollAssetLoad() override {
176 }
177
185 bool IsAssetLoadDone() override;
186
193 void BeginSongLoad() override;
194
201 void PollSongLoad() override {
202 }
203
211 bool IsSongLoadDone() override;
212
219 void CreateLogic() override;
220
231 void BuildTracks(int nStartTick) override;
232
240
241private:
242 int mReserved48; // +0x48, set to 2 and not read by any routine here.
243 RemixLogic *mLogic;
244 int mFxBankSlot;
245};
Input event of a button press that names only the player.
Definition btnevent.h:15
Input event that changes the section a player is on.
Definition changesectionevent.h:10
@ kRuleSetRemix
Definition gamedb.h:32
Input event that plays a note on one of the three gem buttons.
Definition playnoteevent.h:10
Game rules of a remix session.
Definition remixlogic.h:55
void Handle(const BtnEvent< 9 > &event) override
Record a button event of command 9.
void Handle(const ChangeSectionEvent &event) override
Record a section change.
Remix()
Construct a remix world.
void BeginSongLoad() override
Start the song's track loader.
void Handle(const BtnEvent< 10 > &event) override
Record a button event of command 10.
int GetRuleSet() const override
Report the remix rule set.
Definition remix.h:44
void Handle(const BtnEvent< 8 > &event) override
Record a button event of command 8.
void Handle(const PlayNoteEvent &event) override
Record a gem button.
void Handle(const StickEvent< 2 > &event) override
Record a stick event of command 2.
void PollAssetLoad() override
Advance the effect bank load.
Definition remix.h:175
void PollSongLoad() override
Advance the song load.
Definition remix.h:201
bool IsAssetLoadDone() override
Report whether the effect bank is loaded.
bool IsFinished() override
Report whether the remix ended without a player abandoning it.
void Handle(const BtnEvent< 5 > &event) override
Ignore a button event of command 5.
Definition remix.h:128
void Handle(const RotateEvent &event) override
Record a rotation.
~Remix() override
Unload the effect bank and release the world.
void Handle(const BtnEvent< 3 > &event) override
Record a button event of command 3.
bool IsSongLoadDone() override
Advance the song's track loader and report whether it finished.
void Handle(const StickEvent< 6 > &event) override
Ignore a stick event of command 6.
void UnloadFxBank()
Empty the synthesiser slot of the effect bank.
void BuildTracks(int nStartTick) override
Build the display of the song's tracks.
void Handle(const BtnEvent< 4 > &event) override
Ignore a button event of command 4.
Definition remix.h:118
void CreateLogic() override
Build a RemixLogic for the song and install it.
void BeginAssetLoad() override
Load the effect bank of the remix into its synthesiser slot.
Input event that rotates a player's view of the tracks by one track.
Definition rotateevent.h:11
Input event of an analog stick position.
Definition stickevent.h:15
World()
Construct a world with no game state.