Freeciv-3.2
Loading...
Searching...
No Matches
Data Fields
caravan_result Struct Reference

#include <caravan.h>

Data Fields

const struct citysrc
 
const struct citydest
 
int arrival_time
 
double value
 
bool help_wonder
 
bool required_boat
 

Detailed Description

An advisor for using caravans optimally. The parameter gives what we're optimizing for; use init_default if you don't have anything better to set it to. The optimization does not take into account other caravans in transit. It also knows nothing about moving caravans except what pathfinding will tell it – ferries, for instance, aren't handled here. Set ignore_transit_time to work around this. The result of one trade route, according to the parameter below. A null destination implies that this is not a real result.

Definition at line 51 of file caravan.h.

Field Documentation

◆ arrival_time

int caravan_result::arrival_time

◆ dest

const struct city* caravan_result::dest

◆ help_wonder

bool caravan_result::help_wonder

◆ required_boat

bool caravan_result::required_boat

Definition at line 58 of file caravan.h.

Referenced by caravan_result_init(), and caravan_result_init_zero().

◆ src

const struct city* caravan_result::src

◆ value

double caravan_result::value