game.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00015 #ifndef NETWORK_CORE_GAME_H
00016 #define NETWORK_CORE_GAME_H
00017
00018 #include "config.h"
00019 #include "../../newgrf_config.h"
00020 #include "../../date_type.h"
00021
00022 #ifdef ENABLE_NETWORK
00023
00028 struct NetworkServerGameInfo {
00029 char map_name[NETWORK_NAME_LENGTH];
00030 byte clients_on;
00031 };
00032
00036 struct NetworkGameInfo : NetworkServerGameInfo {
00037 GRFConfig *grfconfig;
00038 Date start_date;
00039 Date game_date;
00040 uint16 map_width;
00041 uint16 map_height;
00042 char server_name[NETWORK_NAME_LENGTH];
00043 char hostname[NETWORK_HOSTNAME_LENGTH];
00044 char server_revision[NETWORK_REVISION_LENGTH];
00045 bool dedicated;
00046 bool version_compatible;
00047 bool compatible;
00048 bool use_password;
00049 byte game_info_version;
00050 byte server_lang;
00051 byte clients_max;
00052 byte companies_on;
00053 byte companies_max;
00054 byte spectators_on;
00055 byte spectators_max;
00056 byte map_set;
00057 };
00058
00059 #endif
00060
00061 #endif