OpenTTD Source  1.11.0-beta2
network_gamelist.h
Go to the documentation of this file.
1 /*
2  * This file is part of OpenTTD.
3  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6  */
7 
10 #ifndef NETWORK_GAMELIST_H
11 #define NETWORK_GAMELIST_H
12 
13 #include "core/address.h"
14 #include "network_type.h"
15 
20  bool online;
21  bool manually;
22  uint8 retries;
24 };
25 
28 
33 
34 #endif /* NETWORK_GAMELIST_H */
NetworkGameInfo
The game information that is sent from the server to the clients.
Definition: game.h:32
NetworkGameList::address
NetworkAddress address
The connection info of the game server.
Definition: network_gamelist.h:19
NetworkGameListAddItem
NetworkGameList * NetworkGameListAddItem(NetworkAddress address)
Add a new item to the linked gamelist.
Definition: network_gamelist.cpp:71
address.h
NetworkGameListRemoveItem
void NetworkGameListRemoveItem(NetworkGameList *remove)
Remove an item from the gamelist linked list.
Definition: network_gamelist.cpp:110
NetworkGameList::manually
bool manually
True if the server was added manually.
Definition: network_gamelist.h:21
NetworkGameListAddItemDelayed
void NetworkGameListAddItemDelayed(NetworkGameList *item)
Add a new item to the linked gamelist, but do it delayed in the next tick or so to prevent race condi...
Definition: network_gamelist.cpp:33
_network_game_list
NetworkGameList * _network_game_list
Game list of this client.
Definition: network_gamelist.cpp:23
NetworkAddress
Wrapper for (un)resolved network addresses; there's no reason to transform a numeric IP to a string a...
Definition: address.h:29
NetworkGameList::retries
uint8 retries
Number of retries (to stop requerying)
Definition: network_gamelist.h:22
NetworkGameList
Structure with information shown in the game list (GUI)
Definition: network_gamelist.h:17
NetworkGameListRequery
void NetworkGameListRequery()
Requeries the (game) servers we have not gotten a reply from.
Definition: network_gamelist.cpp:140
NetworkGameList::next
NetworkGameList * next
Next pointer to make a linked game list.
Definition: network_gamelist.h:23
NetworkGameList::info
NetworkGameInfo info
The game information of this server.
Definition: network_gamelist.h:18
NetworkGameList::online
bool online
False if the server did not respond (default status)
Definition: network_gamelist.h:20
network_type.h