wavelength 1.0.0
Loading...
Searching...
No Matches
cardsconnectedscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
6#include "met/errorscreen.h"
7#include "script/dataarray.h"
8#include "ui/uiscreen.h"
10
20public:
29
37 }
38
47 static UIScreen *New(DataArray *pData) {
48 return new CardsConnectedScreen(pData);
49 }
50
58 const char *Title() override {
59 return "";
60 }
61
70 bool DispatchPriv(Message *pMsg) override;
71
80 void Enter(UIScreen *pPrevScreen, float fTime) override;
81
89 void Poll(float fTime) override;
90
98 void OnCardStatus(int nStatus) override;
99
100private:
109 void CheckNextSlot();
110
119 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
120
121 std::vector<int> mSlots; // The slots with a card.
122 int mAdvance; // Whether the next poll moves on to the next slot.
123 int mNumSlots; // The number of slots to ask.
124};
bool DispatchPriv(Message *pMsg) override
Route the end of the entry to HandleTransitionComplete().
void OnCardStatus(int nStatus) override
Record the slot when it has a card, and move on with the next poll.
void Poll(float fTime) override
Move on to the next slot once the status of a slot has arrived.
const char * Title() override
Report the empty title of the screen.
Definition cardsconnectedscreen.h:58
CardsConnectedScreen(DataArray *pData)
Construct the screen from its script description.
void Enter(UIScreen *pPrevScreen, float fTime) override
Forget the slots found and start from the first slot.
~CardsConnectedScreen() override
Destroy the screen.
Definition cardsconnectedscreen.h:36
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition cardsconnectedscreen.h:47
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
Receiver of the outcome of the memory card work MCManager runs.
Definition memcarduser.h:19
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