src/ai/api/ai_types.hpp
author truebrain
Fri, 25 Apr 2008 00:22:41 +0000
branchnoai
changeset 10344 b7e9f5c65e30
parent 10343 0ccd326f082e
child 10643 970417eef395
permissions -rw-r--r--
(svn r12885) [NoAI] -Add: added AISubsidy and AIEventSubsidyNNN (Yexo)
10339
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     1
/* $Id$ */
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     2
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     3
/** @file ai_types.hpp Defines all the types of the game, like VehicleID, .... */
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     4
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     5
#ifndef AI_TYPES_HPP
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     6
#define AI_TYPES_HPP
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     7
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     8
#include "../../core/overflowsafe_type.hpp"
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
     9
#include "../../player_type.h"
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    10
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    11
/* Define all types here, so we don't have to include the whole _type.h maze */
10343
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    12
typedef uint BridgeType;     //!< Internal name, not of any use for you.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    13
typedef byte CargoID;        //!< The ID of a cargo.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    14
class CommandCost;           //!< The cost of a command.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    15
typedef uint16 EngineID;     //!< The ID of an engine.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    16
typedef uint16 IndustryID;   //!< The ID of an industry.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    17
typedef OverflowSafeInt64 Money; //!< Money, stored in a 32bit/64bit safe way.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    18
typedef uint16 SignID;       //!< The ID of a sign.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    19
typedef uint16 StationID;    //!< The ID of a station.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    20
typedef uint16 StringID;     //!< The ID of a string.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    21
typedef uint32 TileIndex;    //!< The ID of a tile (just named differently).
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    22
typedef uint16 TownID;       //!< The ID of a town.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    23
typedef uint16 VehicleID;    //!< The ID of a vehicle.
10339
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    24
10341
08f39ee90bdf (svn r12883) [NoAI] -Fix r12880: move two own-defined typedefs to ai_types.hpp too
truebrain
parents: 10339
diff changeset
    25
/* Types we defined ourself, as the OpenTTD core doesn't have them (yet) */
10343
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    26
typedef uint AIErrorType;    //!< The types of errors inside the NoAI framework.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    27
typedef BridgeType BridgeID; //!< The ID of a bridge.
10344
b7e9f5c65e30 (svn r12885) [NoAI] -Add: added AISubsidy and AIEventSubsidyNNN (Yexo)
truebrain
parents: 10343
diff changeset
    28
typedef uint16 SubsidyID;    //!< The ID of a subsidy.
10341
08f39ee90bdf (svn r12883) [NoAI] -Fix r12880: move two own-defined typedefs to ai_types.hpp too
truebrain
parents: 10339
diff changeset
    29
10339
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    30
#ifndef _SQUIRREL_H_
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    31
/* Life becomes easier when we can tell about a function it needs the VM, but
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    32
 *  without really including 'squirrel.h'. */
10343
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    33
typedef void *HSQUIRRELVM;   //!< Pointer to Squirrel Virtual Machine.
0ccd326f082e (svn r12884) [NoAI] -Fix r12880: make doxygen happy by commenting on all the typedefs.. boy, what are those comments explaining!
truebrain
parents: 10341
diff changeset
    34
typedef int SQInteger;       //!< Squirrel Integer.
10339
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    35
#endif
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    36
ce6cd68d9eb8 (svn r12880) [NoAI] -Add: introduces ai_types.hpp, which has all NNNId like VehicleID. This simplifies the include-mess, and avoids including tons of _type.h for just a single typedef.
truebrain
parents:
diff changeset
    37
#endif /* AI_TYPES_HPP */