wavelength 1.0.0
Loading...
Searching...
No Matches
netrankedplayerspanel.h
Go to the documentation of this file.
1#pragma once
2
3#include "met/freqpanel.h"
5#include "script/dataarray.h"
6#include "ui/uipanel.h"
7
14public:
16 static constexpr int kNumRows = 10;
17
26 NetRankedPlayersPanel(DataArray *pData, const char *pszDir) : FreqPanel(pData, pszDir) {
27 }
28
36 }
37
47 static UIPanel *New(DataArray *pData, const char *pszDir) {
48 return new NetRankedPlayersPanel(pData, pszDir);
49 }
50
59 bool DispatchPriv(Message *pMsg) override;
60
69 void Enter(bool bForce, float fTime) override;
70
71private:
82 bool HandleLobbyPlayers(LobbyPlayersMsg *pMsg);
83};
Reference-counted array of script data nodes.
Definition dataarray.h:20
FreqPanel(DataArray *pData, const char *pszDir)
Construct a panel 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
static UIPanel * New(DataArray *pData, const char *pszDir)
Create a panel from its script description.
Definition netrankedplayerspanel.h:47
~NetRankedPlayersPanel() override
Destroy the panel.
Definition netrankedplayerspanel.h:35
static constexpr int kNumRows
The number of rows the panel lists.
Definition netrankedplayerspanel.h:16
void Enter(bool bForce, float fTime) override
Enter with empty rows and request the top of the ranking.
bool DispatchPriv(Message *pMsg) override
Route the list of players to HandleLobbyPlayers().
NetRankedPlayersPanel(DataArray *pData, const char *pszDir)
Construct the panel from its script description.
Definition netrankedplayerspanel.h:26
UIPanel(DataArray *pData, const char *pszDir)
Construct a hidden panel from its script description.