diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 20:57:34 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 20:57:34 +0000 |
commit | 9359c6fc47f6fabddc399d044ea74dc6ebfdfb05 (patch) | |
tree | 0e29635b5f349432059dc99b36df10aac24981f8 /src/script/api/script_tunnel.hpp | |
parent | 436cf09923d881f3c11c8a4b6262c0a89ad1ee73 (diff) | |
download | openttd-9359c6fc47f6fabddc399d044ea74dc6ebfdfb05.tar.xz |
(svn r23615) -Add: more API functions exposed to NoGo (part 2)
Diffstat (limited to 'src/script/api/script_tunnel.hpp')
-rw-r--r-- | src/script/api/script_tunnel.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/script/api/script_tunnel.hpp b/src/script/api/script_tunnel.hpp index 80f69d69c..1ae9c4d1b 100644 --- a/src/script/api/script_tunnel.hpp +++ b/src/script/api/script_tunnel.hpp @@ -16,7 +16,7 @@ /** * Class that handles all tunnel related functions. - * @api ai + * @api ai game */ class ScriptTunnel : public ScriptObject { public: @@ -96,6 +96,7 @@ public: * @note The slope of a tile can be determined by ScriptTile::GetSlope(TileIndex). * @note No matter if the road pieces were build or not, if building the * tunnel succeeded, this function returns true. + * @api -game */ static bool BuildTunnel(ScriptVehicle::VehicleType vehicle_type, TileIndex start); @@ -105,6 +106,7 @@ public: * @pre ScriptMap::IsValidTile(tile) && IsTunnelTile(tile). * @exception ScriptError::ERR_OWNED_BY_ANOTHER_COMPANY * @return Whether the tunnel has been/can be removed or not. + * @api -game */ static bool RemoveTunnel(TileIndex tile); }; |