wavelength 1.0.0
Loading...
Searching...
No Matches
bootscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
4#include "os/string.h"
5#include "script/dataarray.h"
7
15class BootScreen : public FreqScreen {
16public:
23 ~BootScreen() override = default;
24
32 explicit BootScreen(DataArray *pData);
33
44 static UIScreen *New(DataArray *pData) {
45 return new BootScreen(pData);
46 }
47
56 bool DispatchPriv(Message *pMsg) override;
57
66 void Enter(UIScreen *pPrevScreen, float fTime) override;
67
77
79 void SetPlayerName(const char *pszPlayerName) {
80 mPlayerName = pszPlayerName;
81 }
82
84 void SetPlayer(int nPlayer) {
85 mPlayer = nPlayer;
86 }
87
88private:
89 String mPlayerName;
90 int mPlayer;
91};
BootScreen(DataArray *pData)
Construct the screen from its script description, with no guest.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition bootscreen.h:44
void SetPlayerName(const char *pszPlayerName)
Definition bootscreen.h:79
bool DispatchPriv(Message *pMsg) override
Route a chosen button, and pass on every other message.
bool HandleSelect(UIComponentSelectMsg *pMsg)
Remove the guest for yes, and go back to the launchpad for yes and no.
void SetPlayer(int nPlayer)
Definition bootscreen.h:84
~BootScreen() override=default
Destroy the object.
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry and put the name of the guest into the question of the dialog.
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
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.