src/ai/api/ai_company.hpp
branchnoai
changeset 9866 efc38e1f559a
parent 9865 f241472f09dc
child 10196 aecabd927420
equal deleted inserted replaced
9865:f241472f09dc 9866:efc38e1f559a
   128 	/**
   128 	/**
   129 	 * Build your company's HQ on the given tile.
   129 	 * Build your company's HQ on the given tile.
   130 	 * @param tile The tile to build your HQ on, this tile is the most nothern tile of your HQ.
   130 	 * @param tile The tile to build your HQ on, this tile is the most nothern tile of your HQ.
   131 	 * @pre AIMap::IsValidTile(tile).
   131 	 * @pre AIMap::IsValidTile(tile).
   132 	 * @exception AIError::ERR_AREA_NOT_CLEAR
   132 	 * @exception AIError::ERR_AREA_NOT_CLEAR
       
   133 	 * @exception AIError::ERR_FLAT_LAND_REQUIRED
   133 	 * @return True if the HQ could be build.
   134 	 * @return True if the HQ could be build.
   134 	 * @note An HQ can not be removed, only by water or rebuilding; If an HQ is
   135 	 * @note An HQ can not be removed, only by water or rebuilding; If an HQ is
   135 	 *  build again, the old one is removed.
   136 	 *  build again, the old one is removed.
   136 	 */
   137 	 */
   137 	static bool BuildCompanyHQ(TileIndex tile);
   138 	static bool BuildCompanyHQ(TileIndex tile);