resonance 1.0.1
Loading...
Searching...
No Matches
metstagefinishscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/metscreen.h"
6#include "os/hxstr.h"
7
8class MetButtonList;
9
10namespace Rnd {
11class Drawable;
12class Object;
13} // namespace Rnd
14
42public:
51 MetStageFinishScreen(MetRenderer *pRenderer, int nPriority);
52
65 static MetStageFinishScreen *New(MetRenderer *pRenderer, int nPriority);
66
72
91 virtual void EnterAndShow();
92
104 virtual void HandleCommand(const MetScreenCommand *pCommand);
105
113 virtual void PlayLeaveSound(int nSelector);
114
122 virtual void PlayHighSound(int nSelector);
123
131 virtual void PlayCycleLeftSound(int nSelector);
132
140 virtual void PlayCycleRightSound(int nSelector);
141
149 virtual void PlayErrorSound(int nSelector);
150
166 virtual void UpdateIdle(float flTime);
167
175 virtual void OnRepeatingSoundFinished(Rnd::Button *pButton);
176
185 virtual void OnEnterFinished();
186
198 virtual void OnExitFinished();
199
210 virtual void ResolveContainerViews();
211
212private:
223 void AddHighScoreMessage(int nPreviousScore, int nScore);
224
237 void AddArenaCompleteMessage(int nPreviousCompleted, int nCompleted);
238
249 void AddStageScoreBeatMessage(int nWasBeaten, int nIsBeaten);
250
265 void AddStageCompleteMessage(int nWasComplete, int nIsComplete);
266
280 void AddDifficultyUnlockMessage(int nWasUnlocked, int nIsUnlocked);
281
294 void ShowMessages();
295
306 void AddSecretUnlockMessage(int nWasUnlocked, int nIsUnlocked);
307
318 void AddSuperSecretUnlockMessage(int nWasUnlocked, int nIsUnlocked);
319
330 void AddEndSuperSecretUnlockMessage(int nWasUnlocked, int nIsUnlocked);
331
332 // The messages slot 26 shows, in the order slot 5 queued them. +0x8c
333 std::vector<HxStr> mMessages;
334 // One drawable per message, which slot 26 shows. The routine at 0x003bef98 fills it. +0x98
335 std::vector<Rnd::Drawable *> mMessageDrawables;
336 // The one-button ring with the continue button. The constructor allocates it and the
337 // destructor releases it. +0xa4
338 MetButtonList *mContinueButtons;
339 // Set by slot 5 once the stage is recorded, which blocks a second recording, and cleared by
340 // slot 36. +0xa8
341 int mStageRecorded;
342 // Index of the next message slot 26 shows. +0xac
343 int mNextMessage;
344 // Frame position of the last step of the message sequence, or zero outside the sequence. +0xb0
345 float mLastStepTime;
346 // Cleared by AddDifficultyUnlockMessage() and handed to MetSoloWinScreen by slot 36. +0xb4
347 int mDifficultyUnlocked;
348};
Ring of front-end buttons with one of them selected.
Definition metbuttonlist.h:34
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.
MetStageFinishScreen(MetRenderer *pRenderer, int nPriority)
Construct the screen.
virtual void PlayErrorSound(int nSelector)
Play no error sound.
static MetStageFinishScreen * New(MetRenderer *pRenderer, int nPriority)
Build the screen on the heap.
virtual ~MetStageFinishScreen()
virtual void EnterAndShow()
Record the finished stage, queue the messages it earns, and save or show them.
virtual void PlayLeaveSound(int nSelector)
Play no leave sound.
virtual void OnRepeatingSoundFinished(Rnd::Button *pButton)
Start this screen's exit animation.
virtual void OnExitFinished()
Hand over to the solo win screen.
virtual void PlayCycleRightSound(int nSelector)
Play no right cycle sound.
virtual void HandleCommand(const MetScreenCommand *pCommand)
Start the continue button alternating once the messages are done.
virtual void PlayCycleLeftSound(int nSelector)
Play no left cycle sound.
virtual void PlayHighSound(int nSelector)
Play no high sound.
virtual void OnEnterFinished()
Select no button, record the time the first message appears, and clear the panel.
virtual void UpdateIdle(float flTime)
Show the next queued message, or the continue button after the last.
virtual void ResolveContainerViews()
Resolve the base views, add the continue button, and fill the four congratulation texts.
Selectable widget, as one mesh and one text run plus a palette for each.
Definition button.h:39
Mix-in for an object that draws itself and then a list of other drawables.
Definition drawable.h:32
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
The rendering engine.
Definition animhelper.h:3
One navigation command delivered to a screen.
Definition metscreen.h:46