summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_station.hpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-14 21:15:23 +0000
committeryexo <yexo@openttd.org>2009-02-14 21:15:23 +0000
commit8583274f183dd88c7488d35e36efe340033bed76 (patch)
treea8c637f9f38f7524dd62134a1470a14b779c0748 /src/ai/api/ai_station.hpp
parenta79524c805ff0f6cc20f8e21c40433f9240a5e9f (diff)
downloadopenttd-8583274f183dd88c7488d35e36efe340033bed76.tar.xz
(svn r15488) -Change [API CHANGE]: Add support for distant-join stations.
Diffstat (limited to 'src/ai/api/ai_station.hpp')
-rw-r--r--src/ai/api/ai_station.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ai/api/ai_station.hpp b/src/ai/api/ai_station.hpp
index 5a25f16ed..82cb6a5fe 100644
--- a/src/ai/api/ai_station.hpp
+++ b/src/ai/api/ai_station.hpp
@@ -49,6 +49,12 @@ public:
STATION_ANY = 0x1F, //!< All station types
};
+ enum SpecialStationIDs {
+ STATION_NEW = 0xFFFD, //!< Build a new station
+ STATION_JOIN_ADJACENT = 0xFFFE, //!< Join an neighbouring station if one exists
+ STATION_INVALID = 0xFFFF, //!< Invalid station id.
+ };
+
/**
* Checks whether the given station is valid and owned by you.
* @param station_id The station to check.