114 const struct unit *caravan);
void caravan_find_best_destination(const struct unit *caravan, const struct caravan_parameter *parameter, struct caravan_result *result, bool omniscient)
Find the best destination city for the caravan.
void caravan_result_init_zero(struct caravan_result *result)
Initialize the result to be worth zero and go from nowhere to nowhere.
int caravan_result_compare(const struct caravan_result *a, const struct caravan_result *b)
Compare the two results for sorting.
void caravan_parameter_init_default(struct caravan_parameter *parameter)
Create a valid parameter with default values.
void caravan_parameter_init_from_unit(struct caravan_parameter *parameter, const struct unit *caravan)
Create a valid parameter with default values based on the caravan.
void(* callback)(const struct caravan_result *result, void *data)
enum foreign_trade_limit allow_foreign_trade
bool account_for_broken_routes
An advisor for using caravans optimally.