src/ai/api/ai_map.hpp
branchnoai
changeset 9834 9abe20fc83e5
parent 9829 80fbe02a4184
child 9836 54afebfded49
equal deleted inserted replaced
9833:89a64246458f 9834:9abe20fc83e5
   110 	 * @param t from where the distance has to be calculated.
   110 	 * @param t from where the distance has to be calculated.
   111 	 * @pre t has to be valid (use IsValidTile(t)).
   111 	 * @pre t has to be valid (use IsValidTile(t)).
   112 	 * @return the distances to the closest edge.
   112 	 * @return the distances to the closest edge.
   113 	 */
   113 	 */
   114 	static uint32 DistanceFromEdge(TileIndex t);
   114 	static uint32 DistanceFromEdge(TileIndex t);
   115 
       
   116 	/**
       
   117 	 * Destroy everything on the given tile.
       
   118 	 * @param t the tile to destroy the stuff of.
       
   119 	 * @pre t has to be valid (use IsValidTile(t)).
       
   120 	 * @return true if and only if the destruction succeeded
       
   121 	 */
       
   122 	static bool DemolishTile(TileIndex t);
       
   123 };
   115 };
   124 
   116 
   125 #endif /* AI_MAP_HPP */
   117 #endif /* AI_MAP_HPP */