game.h

Go to the documentation of this file.
00001 /* $Id: game.h 11702 2007-12-26 13:50:40Z rubidium $ */
00002 
00008 #ifndef NETWORK_CORE_GAME_H
00009 #define NETWORK_CORE_GAME_H
00010 
00011 #ifdef ENABLE_NETWORK
00012 
00013 #include "config.h"
00014 #include "../../newgrf_config.h"
00015 #include "../../date_type.h"
00016 
00022 struct NetworkGameInfo {
00023   byte game_info_version;                         
00024   char server_name[NETWORK_NAME_LENGTH];          
00025   char hostname[NETWORK_HOSTNAME_LENGTH];         
00026   char server_revision[NETWORK_REVISION_LENGTH];  
00027   bool version_compatible;                        
00028   bool compatible;                                
00029   byte server_lang;                               
00030   bool use_password;                              
00031   char server_password[NETWORK_PASSWORD_LENGTH];  
00032   byte clients_max;                               
00033   byte clients_on;                                
00034   byte companies_max;                             
00035   byte companies_on;                              
00036   byte spectators_max;                            
00037   byte spectators_on;                             
00038   Date game_date;                                 
00039   Date start_date;                                
00040   char map_name[NETWORK_NAME_LENGTH];             
00041   uint16 map_width;                               
00042   uint16 map_height;                              
00043   byte map_set;                                   
00044   bool dedicated;                                 
00045   char rcon_password[NETWORK_PASSWORD_LENGTH];    
00046   GRFConfig *grfconfig;                           
00047 };
00048 
00049 #endif /* ENABLE_NETWORK */
00050 
00051 #endif /* NETWORK_CORE_GAME_H */

Generated on Wed Oct 1 17:03:21 2008 for openttd by  doxygen 1.5.6