wavelength 1.0.0
Loading...
Searching...
No Matches
netdoplayersearchscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqscreen.h"
4#include "msg/findplayermsg.h"
5#include "os/string.h"
6#include "script/dataarray.h"
7#include "ui/uiscreen.h"
9
16public:
25
33 }
34
43 static UIScreen *New(DataArray *pData) {
44 return new NetDoPlayerSearchScreen(pData);
45 }
46
55 bool DispatchPriv(Message *pMsg) override;
56
64 const char *Title() override {
65 return "";
66 }
67
69 void SetPlayerName(const char *pszPlayerName) {
70 mPlayerName = pszPlayerName;
71 }
72
73private:
84 bool HandleTransitionComplete(UITransitionCompleteMsg *pMsg);
85
96 bool HandleFindPlayer(FindPlayerMsg *pMsg);
97
98 String mPlayerName;
99};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Result of NetLobby::FindPlayer().
Definition findplayermsg.h:15
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
NetDoPlayerSearchScreen(DataArray *pData)
Construct a screen with no name.
~NetDoPlayerSearchScreen() override
Release the screen.
Definition netdoplayersearchscreen.h:32
static UIScreen * New(DataArray *pData)
Produce a screen on the heap.
Definition netdoplayersearchscreen.h:43
void SetPlayerName(const char *pszPlayerName)
Definition netdoplayersearchscreen.h:69
bool DispatchPriv(Message *pMsg) override
Route the result of the search and the end of the entry.
const char * Title() override
Report no title.
Definition netdoplayersearchscreen.h:64
Growable text buffer that is also a PrnStream.
Definition string.h:19
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