wavelength 1.0.0
Loading...
Searching...
No Matches
multiendgamescreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "met/freqscreen.h"
6#include "os/string.h"
7#include "script/dataarray.h"
9
20public:
27 ~MultiEndGameScreen() override = default;
28
36 explicit MultiEndGameScreen(DataArray *pData);
37
46 static UIScreen *New(DataArray *pData) {
47 return new MultiEndGameScreen(pData);
48 }
49
58 bool DispatchPriv(Message *pMsg) override;
59
67 void Poll(float fTime) override;
68
78 void Enter(UIScreen *pPrevScreen, float fTime) override;
79
89
90private:
91 const char *mStats;
92 String mLayout;
93 std::vector<int> mPlayerRows;
94};
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
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition multiendgamescreen.h:46
void Enter(UIScreen *pPrevScreen, float fTime) override
Fill a row panel per player in the order of the ranks, the song, and the difficulty,...
MultiEndGameScreen(DataArray *pData)
Construct the screen from its script description.
bool HandleSelect(UIComponentSelectMsg *pMsg)
Show the screens that follow the game for the choice of the cross button.
~MultiEndGameScreen() override=default
Destroy the object.
void Poll(float fTime) override
Show the winner movie at the position of the song.
bool DispatchPriv(Message *pMsg) override
Route a chosen button, and pass on every other message.
Growable text buffer that is also a PrnStream.
Definition string.h:19
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.