wavelength 1.0.0
Loading...
Searching...
No Matches
bossunlockscreen.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 ~BossUnlockScreen() override = default;
26
34 explicit BossUnlockScreen(DataArray *pData);
35
46 static UIScreen *New(DataArray *pData) {
47 return new BossUnlockScreen(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
100 const char *GetSong() const {
101 return mSong;
102 }
103
105 void SetSong(const char *pszSong) {
106 mSong = pszSong;
107 }
108
109private:
110 float mGoMs;
111 int mStarted;
112 const char *mSong;
113 ViewAnimPlayer mAnimPlayer;
114};
bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg)
Start the journey to the boss arena and the view.
bool DispatchPriv(Message *pMsg) override
Route the end of a transition, and pass on every other message.
void SetSong(const char *pszSong)
Definition bossunlockscreen.h:105
void Exit(UIScreen *pNextScreen, float fTime) override
Start the exit and stop the view.
void Enter(UIScreen *pPrevScreen, float fTime) override
Fill the labels with the announcement and the title of mSong.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition bossunlockscreen.h:46
BossUnlockScreen(DataArray *pData)
Construct the screen from its script description, with no song.
~BossUnlockScreen() override=default
Destroy the object.
void Poll(float fTime) override
Move to boss_journey half a second after the view stops.
const char * GetSong() const
Definition bossunlockscreen.h:100
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