00001 /* $Id: ai_types.hpp 21060 2010-10-30 17:51:07Z alberth $ */ 00002 00003 /* 00004 * This file is part of OpenTTD. 00005 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2. 00006 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00007 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>. 00008 */ 00009 00078 #ifndef AI_TYPES_HPP 00079 #define AI_TYPES_HPP 00080 00081 #include "../../core/overflowsafe_type.hpp" 00082 #include "../../company_type.h" 00083 #include <squirrel.h> 00084 00085 /* Define all types here, so we don't have to include the whole _type.h maze */ 00086 typedef uint BridgeType; 00087 typedef byte CargoID; 00088 class CommandCost; 00089 typedef uint16 EngineID; 00090 typedef uint16 GroupID; 00091 typedef uint16 IndustryID; 00092 typedef uint8 IndustryType; 00093 typedef OverflowSafeInt64 Money; 00094 typedef uint16 SignID; 00095 typedef uint16 StationID; 00096 typedef uint16 StringID; 00097 typedef uint16 SubsidyID; 00098 typedef uint32 TileIndex; 00099 typedef uint16 TownID; 00100 typedef uint32 VehicleID; 00101 00102 /* Types we defined ourself, as the OpenTTD core doesn't have them (yet) */ 00103 typedef uint AIErrorType; 00104 typedef BridgeType BridgeID; 00105 00106 #endif /* AI_TYPES_HPP */