|
|
/* $Id$ */
|
|
|
/** @file openttd.h */
|
|
|
|
|
|
#ifndef OPENTTD_H
|
|
|
#define OPENTTD_H
|
|
|
|
|
|
#ifndef VARDEF
|
|
|
#define VARDEF extern
|
|
|
#endif
|
|
|
|
|
|
// Forward declarations of structs.
|
|
|
struct Depot;
|
|
|
struct Waypoint;
|
|
|
struct Station;
|
|
|
struct ViewPort;
|
|
|
struct DrawPixelInfo;
|
|
|
struct Group;
|
|
|
typedef byte VehicleOrderID; ///< The index of an order within its current vehicle (not pool related)
|
|
|
typedef byte LandscapeID;
|
|
|
typedef uint16 EngineID;
|
|
|
typedef uint16 UnitID;
|
|
|
|
|
|
typedef EngineID *EngineList; ///< engine list type placeholder acceptable for C code (see helpers.cpp)
|
|
|
|
|
|
/* IDs used in Pools */
|
|
|
typedef uint16 StationID;
|
|
|
static const StationID INVALID_STATION = 0xFFFF;
|
|
|
typedef uint16 RoadStopID;
|
|
|
typedef uint16 DepotID;
|
|
|
typedef uint16 WaypointID;
|
|
|
typedef uint16 OrderID;
|
|
|
typedef uint16 SignID;
|
|
|
typedef uint16 GroupID;
|
|
|
typedef uint16 EngineRenewID;
|
|
|
|
|
|
enum GameModes {
|
|
|
GM_MENU,
|
|
|
GM_NORMAL,
|
|
|
GM_EDITOR
|
|
|
};
|
|
|
|