# game.h

Go to the documentation of this file.

    00001 /* $Id: game.h 14421 2008-09-30 20:39:50Z 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 NetworkServerGameInfo {
    00023   byte clients_on;
    00024   Date start_date;
    00025   char map_name[NETWORK_NAME_LENGTH];
    00026 };
    00027
    00028 struct NetworkGameInfo : NetworkServerGameInfo {
    00029   byte game_info_version;
    00030   char server_name[NETWORK_NAME_LENGTH];
    00031   char hostname[NETWORK_HOSTNAME_LENGTH];
    00032   char server_revision[NETWORK_REVISION_LENGTH];
    00033   bool version_compatible;
    00034   bool compatible;
    00035   byte server_lang;
    00036   bool use_password;
    00037   byte clients_max;
    00038   byte companies_on;
    00039   byte companies_max;
    00040   byte spectators_on;
    00041   byte spectators_max;
    00042   Date game_date;
    00043   uint16 map_width;
    00044   uint16 map_height;
    00045   byte map_set;
    00046   bool dedicated;
    00047   GRFConfig *grfconfig;
    00048 };
    00049
    00050 #endif /* ENABLE_NETWORK */
    00051
    00052 #endif /* NETWORK_CORE_GAME_H */