src/ai/api/ai_road.hpp
branchnoai
changeset 9529 5f26f4bc574b
parent 9526 a4ad60ba03be
child 9530 5b93bc87cc5e
equal deleted inserted replaced
9528:b2cc6f31363c 9529:5f26f4bc574b
    20  * direction. For drive-through roadstops this works about
    20  * direction. For drive-through roadstops this works about
    21  * the same, though they have to be built on straight roads.
    21  * the same, though they have to be built on straight roads.
    22  */
    22  */
    23 class AIRoad : public AIObject {
    23 class AIRoad : public AIObject {
    24 public:
    24 public:
       
    25 	/**
       
    26 	 * The name of the class, needed by several sub-processes.
       
    27 	 */
       
    28 	static const char *GetClassName() { return "AIRoad"; }
       
    29 
    25 	/**
    30 	/**
    26 	 * Checks whether the given tile is actually a tile with road.
    31 	 * Checks whether the given tile is actually a tile with road.
    27 	 * @param tile the tile to check.
    32 	 * @param tile the tile to check.
    28 	 * @pre tile is always positive and smaller than AIMap::GetMapSize().
    33 	 * @pre tile is always positive and smaller than AIMap::GetMapSize().
    29 	 * @return true if and only if the tile has road.
    34 	 * @return true if and only if the tile has road.