src/ai/api/ai_types.hpp
branchnoai
changeset 10339 ce6cd68d9eb8
child 10341 08f39ee90bdf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ai/api/ai_types.hpp	Thu Apr 24 23:39:18 2008 +0000
@@ -0,0 +1,32 @@
+/* $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;
+
+#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 */