wavelength 1.0.0
Loading...
Searching...
No Matches
netsortedscreen.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "met/freqscreen.h"
8#include "os/string.h"
9#include "script/dataarray.h"
10
19public:
26 ~NetSortedScreen() override = default;
27
35 explicit NetSortedScreen(DataArray *pData);
36
47 static UIScreen *New(DataArray *pData) {
48 return new NetSortedScreen(pData);
49 }
50
59 bool DispatchPriv(Message *pMsg) override;
60
69 void Enter(UIScreen *pPrevScreen, float fTime) override;
70
80 void SetSearch(const char *pszArena, int nRuleSet, int nSkillLevel);
81
91
92private:
93 std::list<NetLaunchpadInfo> mLaunchpads;
94 String mArena;
95 int mRuleSet;
96 int mSkillLevel;
97};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqScreen(DataArray *pData)
Construct a screen from its script description.
Message that delivers the players of an online session the lobby lists.
Definition lobbyplayersmsg.h:23
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
~NetSortedScreen() override=default
Destroy the object.
static UIScreen * New(DataArray *pData)
Create a screen from its script description.
Definition netsortedscreen.h:47
bool DispatchPriv(Message *pMsg) override
Route the players of a session, and pass on every other message.
NetSortedScreen(DataArray *pData)
Construct the screen from its script description, with no search.
void Enter(UIScreen *pPrevScreen, float fTime) override
Give the search to the list of sessions, start the entry, and clear the chosen session.
bool HandleLobbyPlayers(LobbyPlayersMsg *pMsg)
Show the players of a session while this screen is the current one.
void SetSearch(const char *pszArena, int nRuleSet, int nSkillLevel)
Set the search the screen shows the sessions of.
Growable text buffer that is also a PrnStream.
Definition string.h:19
UIScreen(DataArray *pData)
Construct a screen from its script description.