wavelength 1.0.0
Loading...
Searching...
No Matches
numplayersscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
4#include "script/dataarray.h"
6
16public:
23 ~NumPlayersScreen() override = default;
24
32 explicit NumPlayersScreen(DataArray *pData);
33
44 static UIScreen *New(DataArray *pData) {
45 return new NumPlayersScreen(pData);
46 }
47
56 bool DispatchPriv(Message *pMsg) override;
57
65 void Poll(float fTime) override;
66
75 void Enter(UIScreen *pPrevScreen, float fTime) override;
76
85 void UpdateButtons(int nMultitap);
86
98
99private:
100 int mMultitap;
101};
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
~NumPlayersScreen() override=default
Destroy the object.
NumPlayersScreen(DataArray *pData)
Construct the screen from its script description.
bool DispatchPriv(Message *pMsg) override
Route a chosen button, and pass on every other message.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition numplayersscreen.h:44
void Enter(UIScreen *pPrevScreen, float fTime) override
Start the entry and enable the buttons the controllers allow.
bool HandleSelect(UIComponentSelectMsg *pMsg)
Set up the players of the button chosen with the cross button.
void Poll(float fTime) override
Advance the screen, and update the buttons when a multitap is plugged in or out.
void UpdateButtons(int nMultitap)
Enable the three and four player buttons when a multitap is connected, disable them otherwise,...
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.