src/ai/api/ai_engine.hpp
branchnoai
changeset 10668 495789401303
parent 10196 aecabd927420
equal deleted inserted replaced
10667:1bacf27342bd 10668:495789401303
     5 #ifndef AI_ENGINE_HPP
     5 #ifndef AI_ENGINE_HPP
     6 #define AI_ENGINE_HPP
     6 #define AI_ENGINE_HPP
     7 
     7 
     8 #include "ai_object.hpp"
     8 #include "ai_object.hpp"
     9 #include "ai_vehicle.hpp"
     9 #include "ai_vehicle.hpp"
       
    10 #include "ai_road.hpp"
    10 
    11 
    11 /**
    12 /**
    12  * Class that handles all engine related functions.
    13  * Class that handles all engine related functions.
    13  */
    14  */
    14 class AIEngine : public AIObject {
    15 class AIEngine : public AIObject {
   110 	 * @param engine_id The engine to get the type of.
   111 	 * @param engine_id The engine to get the type of.
   111 	 * @pre IsValidEngine(engine_id).
   112 	 * @pre IsValidEngine(engine_id).
   112 	 * @return The type the engine has.
   113 	 * @return The type the engine has.
   113 	 */
   114 	 */
   114 	static AIVehicle::VehicleType GetVehicleType(EngineID engine_id);
   115 	static AIVehicle::VehicleType GetVehicleType(EngineID engine_id);
       
   116 
       
   117 	/**
       
   118 	 * Get the RoadType of the engine.
       
   119 	 * @param engine_id The engine to get the RoadType of.
       
   120 	 * @pre IsValidEngine(engine_id).
       
   121 	 * @pre GetVehicleType(engine_id) == AIVehicle.VEHICLE_ROAD.
       
   122 	 * @return The RoadType the engine has.
       
   123 	 */
       
   124 	static AIRoad::RoadType GetRoadType(EngineID engine_id);
   115 };
   125 };
   116 
   126 
   117 #endif /* AI_ENGINE_HPP */
   127 #endif /* AI_ENGINE_HPP */