summaryrefslogtreecommitdiff
path: root/src/script/api/script_station.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 23:15:35 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 23:15:35 +0000
commit98103121d4f2ed1f1581919b7b1f343ccd410c12 (patch)
tree1e760dd6517a6b0f9fb669ec277139a8e3f9a4a3 /src/script/api/script_station.hpp
parentafdb67a3534f85b4efbd3327ece8137211042d7b (diff)
downloadopenttd-98103121d4f2ed1f1581919b7b1f343ccd410c12.tar.xz
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
Diffstat (limited to 'src/script/api/script_station.hpp')
-rw-r--r--src/script/api/script_station.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/script/api/script_station.hpp b/src/script/api/script_station.hpp
index b9266c7d3..0d013708a 100644
--- a/src/script/api/script_station.hpp
+++ b/src/script/api/script_station.hpp
@@ -18,14 +18,14 @@
/**
* Class that handles all station related functions.
*/
-class AIStation : public AIBaseStation {
+class ScriptStation : public ScriptBaseStation {
public:
/**
* All station related error messages.
*/
enum ErrorMessages {
/** Base for station related errors */
- ERR_STATION_BASE = AIError::ERR_CAT_STATION << AIError::ERR_CAT_BIT_SIZE,
+ ERR_STATION_BASE = ScriptError::ERR_CAT_STATION << ScriptError::ERR_CAT_BIT_SIZE,
/** The station is build too close to another station, airport or dock */
ERR_STATION_TOO_CLOSE_TO_ANOTHER_STATION, // [STR_ERROR_TOO_CLOSE_TO_ANOTHER_AIRPORT, STR_ERROR_TOO_CLOSE_TO_ANOTHER_STATION, STR_ERROR_TOO_CLOSE_TO_ANOTHER_DOCK]
@@ -90,10 +90,10 @@ public:
* @param station_type The type of station.
* @return The radius in tiles.
*/
- static int32 GetCoverageRadius(AIStation::StationType station_type);
+ static int32 GetCoverageRadius(ScriptStation::StationType station_type);
/**
- * Get the manhattan distance from the tile to the AIStation::GetLocation()
+ * Get the manhattan distance from the tile to the ScriptStation::GetLocation()
* of the station.
* @param station_id The station to get the distance to.
* @param tile The tile to get the distance to.
@@ -103,7 +103,7 @@ public:
static int32 GetDistanceManhattanToTile(StationID station_id, TileIndex tile);
/**
- * Get the square distance from the tile to the AIStation::GetLocation()
+ * Get the square distance from the tile to the ScriptStation::GetLocation()
* of the station.
* @param station_id The station to get the distance to.
* @param tile The tile to get the distance to.
@@ -138,7 +138,7 @@ public:
* @param road_type The RoadType to look for.
* @return True if the station has a station part of the type RoadType.
*/
- static bool HasRoadType(StationID station_id, AIRoad::RoadType road_type);
+ static bool HasRoadType(StationID station_id, ScriptRoad::RoadType road_type);
/**
* Get the town that was nearest to the given station when the station was built.
@@ -153,6 +153,6 @@ public:
static TownID GetNearestTown(StationID station_id);
};
-DECLARE_ENUM_AS_BIT_SET(AIStation::StationType)
+DECLARE_ENUM_AS_BIT_SET(ScriptStation::StationType)
#endif /* SCRIPT_STATION_HPP */