wavelength 1.0.0
Loading...
Searching...
No Matches
loadfreqscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "game/campaign.h"
7#include "met/errorscreen.h"
8#include "script/dataarray.h"
9#include "ui/uiscreen.h"
11
21class LoadFreqScreen : public ErrorScreen, public MemcardUser {
22public:
30#ifdef VIDEO_STANDARD_PAL
31 explicit LoadFreqScreen(DataArray *pData) : ErrorScreen(pData), mReload(0) {
32 }
33#else
34 explicit LoadFreqScreen(DataArray *pData) : ErrorScreen(pData) {
35 }
36#endif
37
44 ~LoadFreqScreen() override {
45 }
46
55 static UIScreen *New(DataArray *pData) {
56 return new LoadFreqScreen(pData);
57 }
58
59#ifdef VIDEO_STANDARD_PAL
66 void Poll(float fTime) override;
67#endif
68
76 const char *Title() override {
77 return "";
78 }
79
88 bool DispatchPriv(Message *pMsg) override;
89
98 void OnFreqsLoaded(int nStatus, std::vector<Campaign> *pProfiles) override;
99
100private:
109 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
110
111#ifdef VIDEO_STANDARD_PAL
112 int mReload; // Whether the next poll loads the Freqs again.
113#endif
114};
Reference-counted array of script data nodes.
Definition dataarray.h:20
ErrorScreen(DataArray *pData)
Construct the screen from its script description.
bool DispatchPriv(Message *pMsg) override
Route the end of the entry to HandleTransitionComplete().
~LoadFreqScreen() override
Destroy the screen.
Definition loadfreqscreen.h:44
void OnFreqsLoaded(int nStatus, std::vector< Campaign > *pProfiles) override
Hand the Freqs to the done screen and go there, or open the dialog of the failure.
const char * Title() override
Report the empty title of the screen.
Definition loadfreqscreen.h:76
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition loadfreqscreen.h:55
LoadFreqScreen(DataArray *pData)
Construct the screen from its script description.
Definition loadfreqscreen.h:34
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
virtual void Poll(float fTime)
Advance the panels to a time, and finish the exit or the entry once their animations stop.
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