src/ai/api/ai_engine.hpp
branchnoai
changeset 10668 495789401303
parent 10196 aecabd927420
--- a/src/ai/api/ai_engine.hpp	Thu May 22 10:23:34 2008 +0000
+++ b/src/ai/api/ai_engine.hpp	Thu May 22 15:49:08 2008 +0000
@@ -7,6 +7,7 @@
 
 #include "ai_object.hpp"
 #include "ai_vehicle.hpp"
+#include "ai_road.hpp"
 
 /**
  * Class that handles all engine related functions.
@@ -112,6 +113,15 @@
 	 * @return The type the engine has.
 	 */
 	static AIVehicle::VehicleType GetVehicleType(EngineID engine_id);
+
+	/**
+	 * Get the RoadType of the engine.
+	 * @param engine_id The engine to get the RoadType of.
+	 * @pre IsValidEngine(engine_id).
+	 * @pre GetVehicleType(engine_id) == AIVehicle.VEHICLE_ROAD.
+	 * @return The RoadType the engine has.
+	 */
+	static AIRoad::RoadType GetRoadType(EngineID engine_id);
 };
 
 #endif /* AI_ENGINE_HPP */