OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

game.h
Go to the documentation of this file.
1 /* $Id: game.h 17699 2009-10-04 20:00:56Z rubidium $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * 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.
6 * 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.
7 * 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/>.
8 */
9
15 #ifndef NETWORK_CORE_GAME_H
16 #define NETWORK_CORE_GAME_H
17
18 #include "config.h"
19 #include "../../newgrf_config.h"
20 #include "../../date_type.h"
21
22 #ifdef ENABLE_NETWORK
23
28 struct NetworkServerGameInfo {
29 char map_name[NETWORK_NAME_LENGTH];
30 byte clients_on;
31 };
32
36 struct NetworkGameInfo : NetworkServerGameInfo {
37 GRFConfig *grfconfig;
38 Date start_date;
39 Date game_date;
40 uint16 map_width;
41 uint16 map_height;
42 char server_name[NETWORK_NAME_LENGTH];
43 char hostname[NETWORK_HOSTNAME_LENGTH];
44 char server_revision[NETWORK_REVISION_LENGTH];
45 bool dedicated;
46 bool version_compatible;
47 bool compatible;
48 bool use_password;
49 byte game_info_version;
50 byte server_lang;
51 byte clients_max;
52 byte companies_on;
53 byte companies_max;
54 byte spectators_on;
55 byte spectators_max;
56 byte map_set;
57 };
58
59 #endif /* ENABLE_NETWORK */
60
61 #endif /* NETWORK_CORE_GAME_H */