src/ai/api/ai_types.hpp
author truebrain
Thu, 24 Apr 2008 23:53:05 +0000
branchnoai
changeset 10341 08f39ee90bdf
parent 10339 ce6cd68d9eb8
child 10343 0ccd326f082e
permissions -rw-r--r--
(svn r12883) [NoAI] -Fix r12880: move two own-defined typedefs to ai_types.hpp too
/* $Id$ */

/** @file ai_types.hpp Defines all the types of the game, like VehicleID, .... */

#ifndef AI_TYPES_HPP
#define AI_TYPES_HPP

#include "../../core/overflowsafe_type.hpp"
#include "../../player_type.h"

/* Define all types here, so we don't have to include the whole _type.h maze */
typedef uint BridgeType;
typedef byte CargoID;
class CommandCost;
typedef uint16 EngineID;
typedef uint16 IndustryID;
typedef OverflowSafeInt64 Money;
typedef uint16 SignID;
typedef uint16 StationID;
typedef uint16 StringID;
typedef uint32 TileIndex;
typedef uint16 TownID;
typedef uint16 VehicleID;

/* Types we defined ourself, as the OpenTTD core doesn't have them (yet) */
typedef uint AIErrorType;
typedef BridgeType BridgeID; //!< Map BridgeType to BridgeID, as we use ID everywhere, OpenTTD core doesn't...

#ifndef _SQUIRREL_H_
/* Life becomes easier when we can tell about a function it needs the VM, but
 *  without really including 'squirrel.h'. */
typedef void *HSQUIRRELVM;
typedef int SQInteger;
#endif

#endif /* AI_TYPES_HPP */