resonance 1.0.1
Loading...
Searching...
No Matches
metmultisaveremixscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/metremixsaver.h"
6#include "met/metscreen.h"
7#include "rnd/object.h"
8
44public:
53 MetMultiSaveRemixScreen(MetRenderer *pRenderer, int nPriority);
54
60
70 static MetMultiSaveRemixScreen *New(MetRenderer *pRenderer, int nPriority);
71
84 virtual void EnterAndShow();
85
99 virtual void OnExitFinished();
100
116 virtual void OnSaveFinished(int bCompleted);
117
126 virtual void OnHelpRequested();
127
138 virtual void SetOwnerScreenShowing(int bShowing);
139
148 virtual void PlayLeaveSound(int) {
149 }
150
157 virtual void PlayHighSound(int) {
158 }
159
166 virtual void PlayCycleLeftSound(int) {
167 }
168
175 virtual void PlayCycleRightSound(int) {
176 }
177
178private:
189 void ReturnToRemixType();
190
191 // The players MetFrontEndState holds, at most this many.
192 static constexpr int kMaxPlayers = 4;
193
194 // Four vectors the constructor and the destructor build and release, and that no other routine
195 // of the class reads or writes.
196 std::vector<Rnd::Object *> mUnusedObjects1; // +0x90
197 std::vector<Rnd::Object *> mUnusedObjects2; // +0x9c
198 std::vector<Rnd::Object *> mUnusedObjects3; // +0xa8
199 std::vector<Rnd::Object *> mUnusedObjects4; // +0xb4
200 // The number of players, from MetFrontEndState. +0xc0
201 int mPlayerCount;
202 // 1 for each player whose memory card is formatted. +0xc4
203 int mCardReady[kMaxPlayers];
204 // The number of ready cards, which the constructor zeroes. +0xd4
205 int mSaveCount;
206 // The ready players, in order. +0xd8
207 std::vector<int> mReadyPlayers;
208 // The index into mReadyPlayers of the save in progress. +0xe4
209 int mSaveIndex;
210 // Set once the end-of-remix screen has been exited for the help screen or a declined save.
211 // Slot 3 sets it, slot 4 stores the negation of its argument in it, and slot 2 reads it. +0xe8
212 int mEndScreenExited;
213};
virtual void PlayCycleLeftSound(int)
Silence the cycle-left sound.
Definition metmultisaveremixscreen.h:166
virtual void OnSaveFinished(int bCompleted)
Go on to the next save, or finish.
virtual void OnExitFinished()
Start the first save once the exit finishes.
MetMultiSaveRemixScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void PlayLeaveSound(int)
Silence the leave sound.
Definition metmultisaveremixscreen.h:148
virtual ~MetMultiSaveRemixScreen()
virtual void PlayHighSound(int)
Silence the high sound.
Definition metmultisaveremixscreen.h:157
static MetMultiSaveRemixScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual void OnHelpRequested()
Set mEndScreenExited and exit the end-of-remix screen.
virtual void SetOwnerScreenShowing(int bShowing)
Store the negation of a flag in mEndScreenExited, and push or exit the end-of-remix screen on it.
virtual void EnterAndShow()
Hide the screen, push the multiplayer end-of-remix screen, and record which players have a formatted ...
virtual void PlayCycleRightSound(int)
Silence the cycle-right sound.
Definition metmultisaveremixscreen.h:175
Mix-in for a screen that writes a remix to a memory card.
Definition metremixsaver.h:26
Front-end renderer that owns the screen stack and drives every MetScreen.
Definition metrenderer.h:68
MetScreen(MetRenderer *pRenderer, int nPriority, const HxStr &name, const HxStr &directory, const HxStr &file)
Construct a screen and start its container load.