diff options
author | truebrain <truebrain@openttd.org> | 2009-01-16 00:05:26 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2009-01-16 00:05:26 +0000 |
commit | 94dd36d1eceb487616f9f0ea260fbe00d84cc267 (patch) | |
tree | 9e3c6b823cc8e282db94a22336d126affeaaac1c /src/ai/api/ai_vehicle.hpp | |
parent | 5119132dda807aacb65e2afcce22665e7eedc577 (diff) | |
download | openttd-94dd36d1eceb487616f9f0ea260fbe00d84cc267.tar.xz |
(svn r15101) -Change [API CHANGE]: more consistant naming for consts:
INVALID_TOWN_RATING -> TOWN_RATING_INVALID
INVALID_TRANSPORT -> TRANSPORT_INVALID
INVALID_ORDER -> ORDER_INVALID
INVALID_GROUP -> GROUP_INVALID
GROUP_ALL/DEFAULT -> ALL/DEFAULT_GROUP
VEHICLE_RAIL/ROAD/.. -> VT_RAIL/ROAD/..
MY_COMPANY -> COMPANY_SELF
FIRST/LAST/INVALID_COMPANY -> COMPANY_FIRST/LAST/INVALID
Diffstat (limited to 'src/ai/api/ai_vehicle.hpp')
-rw-r--r-- | src/ai/api/ai_vehicle.hpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp index 84ddb4734..1336e9efe 100644 --- a/src/ai/api/ai_vehicle.hpp +++ b/src/ai/api/ai_vehicle.hpp @@ -68,11 +68,15 @@ public: */ enum VehicleType { /* Order IS important, as it now matches the internal state of the game for vehicle type */ - VEHICLE_RAIL, //!< Rail type vehicle. - VEHICLE_ROAD, //!< Road type vehicle (bus / truck). - VEHICLE_WATER, //!< Water type vehicle. - VEHICLE_AIR, //!< Air type vehicle. - VEHICLE_INVALID = 0xFF, //!< Invalid vehicle type. + VT_RAIL, //!< Rail type vehicle. + VT_ROAD, //!< Road type vehicle (bus / truck). + VT_WATER, //!< Water type vehicle. + VT_AIR, //!< Air type vehicle. + VT_INVALID = 0xFF, //!< Invalid vehicle type. + +#ifdef DEFINE_SCRIPT_FILES + VEHICLE_INVALID = -1, //!< Invalid VehicleID. +#endif /* DEFINE_SCRIPT_FILES */ }; /** |