00001 /* $Id: ai_types.hpp 16511 2009-06-03 18:55:45Z rubidium $ */ 00002 00074 #ifndef AI_TYPES_HPP 00075 #define AI_TYPES_HPP 00076 00077 #include "../../core/overflowsafe_type.hpp" 00078 #include "../../company_type.h" 00079 00080 /* Define all types here, so we don't have to include the whole _type.h maze */ 00081 typedef uint BridgeType; 00082 typedef byte CargoID; 00083 class CommandCost; 00084 typedef uint16 EngineID; 00085 typedef uint16 GroupID; 00086 typedef uint16 IndustryID; 00087 typedef uint8 IndustryType; 00088 typedef OverflowSafeInt64 Money; 00089 typedef uint16 SignID; 00090 typedef uint16 StationID; 00091 typedef uint16 StringID; 00092 typedef uint32 TileIndex; 00093 typedef uint16 TownID; 00094 typedef uint16 VehicleID; 00095 typedef uint16 WaypointID; 00096 00097 /* Types we defined ourself, as the OpenTTD core doesn't have them (yet) */ 00098 typedef uint AIErrorType; 00099 typedef BridgeType BridgeID; 00100 typedef uint16 SubsidyID; 00101 00102 #ifndef _SQUIRREL_H_ 00103 /* Life becomes easier when we can tell about a function it needs the VM, but 00104 * without really including 'squirrel.h'. */ 00105 typedef struct SQVM *HSQUIRRELVM; 00106 typedef int SQInteger; 00107 typedef struct SQObject HSQOBJECT; 00108 #endif 00109 00110 #endif /* AI_TYPES_HPP */