OpenTTD Source 20241224-master-gf74b0cf984
|
Structure with information shown in the game list (GUI) More...
#include <network_gamelist.h>
Public Member Functions | |
NetworkGameList (const std::string &connection_string) | |
Data Fields | |
NetworkGameInfo | info = {} |
The game information of this server. | |
std::string | connection_string |
Address of the server. | |
NetworkGameListStatus | status = NGLS_OFFLINE |
Stats of the server. | |
bool | manually = false |
True if the server was added manually. | |
bool | refreshing = false |
Whether this server is being queried. | |
int | version = 0 |
Used to see which servers are no longer available on the Game Coordinator and can be removed. | |
NetworkGameList * | next = nullptr |
Next pointer to make a linked game list. | |
Structure with information shown in the game list (GUI)
Definition at line 27 of file network_gamelist.h.
|
inline |
Definition at line 28 of file network_gamelist.h.
std::string NetworkGameList::connection_string |
Address of the server.
Definition at line 31 of file network_gamelist.h.
Referenced by NetworkGameListAddItem(), NetworkGameWindow::NGameNameSorter(), and NetworkGameWindow::OnClick().
NetworkGameInfo NetworkGameList::info = {} |
The game information of this server.
Definition at line 30 of file network_gamelist.h.
Referenced by NetworkGameWindow::DrawServerLine(), NetworkAddServer(), NetworkGameListAddItem(), NetworkGameListRemoveExpired(), NetworkGameListRemoveItem(), NetworkGameWindow::NGameAllowedSorter(), NetworkGameWindow::NGameCalendarDateSorter(), NetworkGameWindow::NGameClientSorter(), NetworkGameWindow::NGameMapSizeSorter(), NetworkGameWindow::NGameNameSorter(), NetworkGameWindow::NGameTicksPlayingSorter(), NetworkGameWindow::OnClick(), NetworkGameWindow::OnPaint(), ClientNetworkCoordinatorSocketHandler::Receive_GC_LISTING(), and QueryNetworkGameSocketHandler::Receive_SERVER_GAME_INFO().
bool NetworkGameList::manually = false |
True if the server was added manually.
Definition at line 33 of file network_gamelist.h.
Referenced by NetworkAddServer().
NetworkGameList* NetworkGameList::next = nullptr |
Next pointer to make a linked game list.
Definition at line 36 of file network_gamelist.h.
Referenced by NetworkGameWindow::BuildGUINetworkGameList(), NetworkAfterNewGRFScan(), NetworkGameListAddItem(), NetworkGameListRemoveExpired(), and NetworkGameListRemoveItem().
bool NetworkGameList::refreshing = false |
Whether this server is being queried.
Definition at line 34 of file network_gamelist.h.
Referenced by QueryNetworkGameSocketHandler::CloseConnection(), NetworkQueryServer(), NetworkGameWindow::OnClick(), TCPQueryConnecter::OnFailure(), NetworkGameWindow::OnPaint(), QueryNetworkGameSocketHandler::Receive_SERVER_BANNED(), QueryNetworkGameSocketHandler::Receive_SERVER_ERROR(), QueryNetworkGameSocketHandler::Receive_SERVER_FULL(), and QueryNetworkGameSocketHandler::Receive_SERVER_GAME_INFO().
NetworkGameListStatus NetworkGameList::status = NGLS_OFFLINE |
Stats of the server.
Definition at line 32 of file network_gamelist.h.
Referenced by QueryNetworkGameSocketHandler::CloseConnection(), TCPQueryConnecter::OnFailure(), NetworkGameWindow::OnPaint(), ClientNetworkCoordinatorSocketHandler::Receive_GC_ERROR(), ClientNetworkCoordinatorSocketHandler::Receive_GC_LISTING(), QueryNetworkGameSocketHandler::Receive_SERVER_BANNED(), QueryNetworkGameSocketHandler::Receive_SERVER_ERROR(), QueryNetworkGameSocketHandler::Receive_SERVER_FULL(), and QueryNetworkGameSocketHandler::Receive_SERVER_GAME_INFO().
int NetworkGameList::version = 0 |
Used to see which servers are no longer available on the Game Coordinator and can be removed.
Definition at line 35 of file network_gamelist.h.
Referenced by NetworkAddServer(), NetworkGameListAddItem(), and ClientNetworkCoordinatorSocketHandler::Receive_GC_LISTING().