wavelength 1.0.0
Loading...
Searching...
No Matches
remixdiscardscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
4#include "script/dataarray.h"
6
15public:
22 ~RemixDiscardScreen() override = default;
23
31 explicit RemixDiscardScreen(DataArray *pData);
32
43 static UIScreen *New(DataArray *pData) {
44 return new RemixDiscardScreen(pData);
45 }
46
55 bool DispatchPriv(Message *pMsg) override;
56
70
72 int GetPlayer() const {
73 return mPlayer;
74 }
75
77 void SetPlayer(int nPlayer) {
78 mPlayer = nPlayer;
79 }
80
81private:
82 int mPlayer;
83};
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
int GetPlayer() const
Definition remixdiscardscreen.h:72
bool DispatchPriv(Message *pMsg) override
Route a chosen button, and pass on every other message.
~RemixDiscardScreen() override=default
Destroy the object.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition remixdiscardscreen.h:43
bool HandleSelect(UIComponentSelectMsg *pMsg)
Go on from the answer chosen with the cross button.
RemixDiscardScreen(DataArray *pData)
Construct the screen from its script description.
void SetPlayer(int nPlayer)
Definition remixdiscardscreen.h:77
Message a component sends when the player chooses it.
Definition uicomponentselectmsg.h:28
UIScreen(DataArray *pData)
Construct a screen from its script description.