src/ai/api/ai_tile.hpp
branchnoai
changeset 9619 6e81cec30a2b
parent 9617 df9cedf12aab
child 9658 e7675771bca4
equal deleted inserted replaced
9618:a370e3f3bd70 9619:6e81cec30a2b
    38 	 * Check how much cargo this tile accepts.
    38 	 * Check how much cargo this tile accepts.
    39 	 *  It creates a radius around the tile and adds up all acceptance of this
    39 	 *  It creates a radius around the tile and adds up all acceptance of this
    40 	 *   cargo and returns that value.
    40 	 *   cargo and returns that value.
    41 	 * @pre tile is always positive and smaller than AIMap::GetMapSize().
    41 	 * @pre tile is always positive and smaller than AIMap::GetMapSize().
    42 	 * @param tile the tile to check on.
    42 	 * @param tile the tile to check on.
       
    43 	 * @param cargo_type the cargo to check the acceptance of.
    43 	 * @return value below 8 means no acceptance; the more the better.
    44 	 * @return value below 8 means no acceptance; the more the better.
    44 	 */
    45 	 */
    45 	static int32 GetCargoAcceptance(TileIndex tile, CargoID cargo_type);
    46 	static int32 GetCargoAcceptance(TileIndex tile, CargoID cargo_type);
    46 };
    47 };
    47 
    48