(svn r23506) -Add: [NoAI] Support for dealing with aircraft range.

This commit is contained in:
michi_cc
2011-12-13 00:43:59 +00:00
parent 34ffd08a19
commit a085ea9e4b
17 changed files with 179 additions and 24 deletions

View File

@@ -250,6 +250,16 @@ public:
* @return The PlaneType the engine has.
*/
static ScriptAirport::PlaneType GetPlaneType(EngineID engine_id);
/**
* Get the maximum allowed distance between two orders for an engine.
* @param vehicle_id The engine to get the max distance for.
* @pre IsValidEngine(engine_id).
* @return The maximum distance between two orders for the engine
* or 0 if the distance is unlimited.
* @see ScriptOrder::GetOrderDistance
*/
static uint GetMaximumOrderDistance(EngineID engine_id);
};
#endif /* SCRIPT_ENGINE_HPP */