truebrain@10339: /* $Id$ */ truebrain@10339: truebrain@10339: /** @file ai_types.hpp Defines all the types of the game, like VehicleID, .... */ truebrain@10339: truebrain@10339: #ifndef AI_TYPES_HPP truebrain@10339: #define AI_TYPES_HPP truebrain@10339: truebrain@10339: #include "../../core/overflowsafe_type.hpp" truebrain@10339: #include "../../player_type.h" truebrain@10339: truebrain@10339: /* Define all types here, so we don't have to include the whole _type.h maze */ truebrain@10343: typedef uint BridgeType; //!< Internal name, not of any use for you. truebrain@10343: typedef byte CargoID; //!< The ID of a cargo. truebrain@10343: class CommandCost; //!< The cost of a command. truebrain@10343: typedef uint16 EngineID; //!< The ID of an engine. truebrain@10343: typedef uint16 IndustryID; //!< The ID of an industry. truebrain@10343: typedef OverflowSafeInt64 Money; //!< Money, stored in a 32bit/64bit safe way. truebrain@10343: typedef uint16 SignID; //!< The ID of a sign. truebrain@10343: typedef uint16 StationID; //!< The ID of a station. truebrain@10343: typedef uint16 StringID; //!< The ID of a string. truebrain@10343: typedef uint32 TileIndex; //!< The ID of a tile (just named differently). truebrain@10343: typedef uint16 TownID; //!< The ID of a town. truebrain@10343: typedef uint16 VehicleID; //!< The ID of a vehicle. truebrain@10339: truebrain@10341: /* Types we defined ourself, as the OpenTTD core doesn't have them (yet) */ truebrain@10343: typedef uint AIErrorType; //!< The types of errors inside the NoAI framework. truebrain@10343: typedef BridgeType BridgeID; //!< The ID of a bridge. truebrain@10344: typedef uint16 SubsidyID; //!< The ID of a subsidy. truebrain@10341: truebrain@10339: #ifndef _SQUIRREL_H_ truebrain@10339: /* Life becomes easier when we can tell about a function it needs the VM, but truebrain@10339: * without really including 'squirrel.h'. */ truebrain@10343: typedef void *HSQUIRRELVM; //!< Pointer to Squirrel Virtual Machine. truebrain@10343: typedef int SQInteger; //!< Squirrel Integer. truebrain@10339: #endif truebrain@10339: truebrain@10339: #endif /* AI_TYPES_HPP */