15 #ifndef NETWORK_CORE_GAME_H 16 #define NETWORK_CORE_GAME_H 19 #include "../../newgrf_config.h" 20 #include "../../date_type.h" Date start_date
When the game started.
byte spectators_max
Max spectators allowed on server.
uint16 map_height
Map height.
byte game_info_version
Version of the game info.
The game information that is not generated on-the-fly and has to be sent to the clients.
byte server_lang
Language of the server (we should make a nice table for this)
bool version_compatible
Can we connect to this server or not? (based on server_revision)
uint16 map_width
Map width.
Configuration options of the network stuff.
The game information that is sent from the server to the clients.
byte companies_max
Max companies allowed on server.
byte companies_on
How many started companies do we have.
Information about GRF, used in the game and (part of it) in savegames.
byte clients_max
Max clients allowed on server.
bool use_password
Is this server passworded?
byte clients_on
Current count of clients on server.
static const uint NETWORK_HOSTNAME_LENGTH
The maximum length of the host name, in bytes including '\0'.
bool dedicated
Is this a dedicated server?
char map_name[NETWORK_NAME_LENGTH]
Map which is played ["random" for a randomized map].
byte map_set
Graphical set.
Date game_date
Current date.
int32 Date
The type to store our dates in.
static const uint NETWORK_NAME_LENGTH
The maximum length of the server name and map name, in bytes including '\0'.
static const uint NETWORK_REVISION_LENGTH
The maximum length of the revision, in bytes including '\0'.
GRFConfig * grfconfig
List of NewGRF files used.
byte spectators_on
How many spectators do we have?
bool compatible
Can we connect to this server or not? (based on server_revision and grf_match.