00001 /* $Id: game.h 17699 2009-10-04 20:00:56Z rubidium $ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * 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. 00006 * 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. 00007 * 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/>. 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 /* ENABLE_NETWORK */ 00060 00061 #endif /* NETWORK_CORE_GAME_H */