wavelength 1.0.0
Loading...
Searching...
No Matches
arenaunlockscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
5#include "script/dataarray.h"
7
18public:
25 ~ArenaUnlockScreen() override = default;
26
34 explicit ArenaUnlockScreen(DataArray *pData);
35
46 static UIScreen *New(DataArray *pData) {
47 return new ArenaUnlockScreen(pData);
48 }
49
58 bool DispatchPriv(Message *pMsg) override;
59
67 void Poll(float fTime) override;
68
77 void Exit(UIScreen *pNextScreen, float fTime) override;
78
87 void Enter(UIScreen *pPrevScreen, float fTime) override;
88
98
99private:
100 float mStartMs;
101 ViewAnimPlayer mAnimPlayer;
102 int mCount;
103 float mHoldMs;
104 float mGoMs;
105};
~ArenaUnlockScreen() override=default
Destroy the object.
ArenaUnlockScreen(DataArray *pData)
Construct the screen from its script description.
void Poll(float fTime) override
Move to unlockarena2anim_0<count> once the view has stopped and mHoldMs has passed.
void Exit(UIScreen *pNextScreen, float fTime) override
Start the exit and stop the view.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition arenaunlockscreen.h:46
bool DispatchPriv(Message *pMsg) override
Route the end of a transition, and pass on every other message.
void Enter(UIScreen *pPrevScreen, float fTime) override
Count the unlocked arenas and name the last in the label.
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Start the view.
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
UIScreen(DataArray *pData)
Construct a screen from its script description.
Message a screen sends itself once its panels have finished their entry animations.
Definition uitransitioncompletemsg.h:23
Player of the entry animation of a view, which loops the cursor sound while a cursor of the animation...
Definition viewanimplayer.h:12