~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to src/network/core/game.h

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: game.h 11702 2007-12-26 13:50:40Z rubidium $ */
 
1
/* $Id: game.h 14421 2008-09-30 20:39:50Z rubidium $ */
2
2
 
3
3
/**
4
4
 * @file game.h Information about a game that is sent between a
17
17
/**
18
18
 * This is the struct used by both client and server
19
19
 * some fields will be empty on the client (like game_password) by default
20
 
 * and only filled with data a player enters.
 
20
 * and only filled with data a client enters.
21
21
 */
22
 
struct NetworkGameInfo {
 
22
struct NetworkServerGameInfo {
 
23
        byte clients_on;                                ///< Current count of clients on server
 
24
        Date start_date;                                ///< When the game started
 
25
        char map_name[NETWORK_NAME_LENGTH];             ///< Map which is played ["random" for a randomized map]
 
26
};
 
27
 
 
28
struct NetworkGameInfo : NetworkServerGameInfo {
23
29
        byte game_info_version;                         ///< Version of the game info
24
30
        char server_name[NETWORK_NAME_LENGTH];          ///< Server name
25
31
        char hostname[NETWORK_HOSTNAME_LENGTH];         ///< Hostname of the server (if any)
28
34
        bool compatible;                                ///< Can we connect to this server or not? (based on server_revision _and_ grf_match
29
35
        byte server_lang;                               ///< Language of the server (we should make a nice table for this)
30
36
        bool use_password;                              ///< Is this server passworded?
31
 
        char server_password[NETWORK_PASSWORD_LENGTH];  ///< On the server: the game password, on the client: != "" if server has password
32
37
        byte clients_max;                               ///< Max clients allowed on server
33
 
        byte clients_on;                                ///< Current count of clients on server
 
38
        byte companies_on;                              ///< How many started companies do we have
34
39
        byte companies_max;                             ///< Max companies allowed on server
35
 
        byte companies_on;                              ///< How many started companies do we have
 
40
        byte spectators_on;                             ///< How many spectators do we have?
36
41
        byte spectators_max;                            ///< Max spectators allowed on server
37
 
        byte spectators_on;                             ///< How many spectators do we have?
38
42
        Date game_date;                                 ///< Current date
39
 
        Date start_date;                                ///< When the game started
40
 
        char map_name[NETWORK_NAME_LENGTH];             ///< Map which is played ["random" for a randomized map]
41
43
        uint16 map_width;                               ///< Map width
42
44
        uint16 map_height;                              ///< Map height
43
45
        byte map_set;                                   ///< Graphical set
44
46
        bool dedicated;                                 ///< Is this a dedicated server?
45
 
        char rcon_password[NETWORK_PASSWORD_LENGTH];    ///< RCon password for the server. "" if rcon is disabled
46
47
        GRFConfig *grfconfig;                           ///< List of NewGRF files used
47
48
};
48
49