Freeciv-3.2
|
#include "path_finding.h"
Go to the source code of this file.
Data Structures | |
struct | pft_amphibious |
enum tile_behavior no_fights | ( | const struct tile * | ptile, |
enum known_type | known, | ||
const struct pf_parameter * | param | ||
) |
PF callback to prohibit attacking anyone.
Definition at line 509 of file pf_tools.c.
Referenced by dai_fill_unit_param().
enum tile_behavior no_fights_or_unknown | ( | const struct tile * | ptile, |
enum known_type | known, | ||
const struct pf_parameter * | param | ||
) |
PF callback to prohibit going into the unknown. Also makes sure we don't plan to attack anyone.
Definition at line 493 of file pf_tools.c.
Referenced by find_best_city_placement(), manage_auto_explorer(), and no_fights_or_unknown_goto().
enum tile_behavior no_intermediate_fights | ( | const struct tile * | ptile, |
enum known_type | known, | ||
const struct pf_parameter * | param | ||
) |
PF callback to prohibit attacking anyone, except at the destination.
Definition at line 524 of file pf_tools.c.
Referenced by dai_fill_unit_param(), and dai_manage_diplomat().
void pft_fill_amphibious_parameter | ( | struct pft_amphibious * | parameter | ) |
Fill parameters for combined sea-land movement. This is suitable for the case of a land unit riding a ferry. The starting position of the ferry is taken to be the starting position for the PF. The passenger is assumed initially to be on the given ferry. The destination may be inland, in which case the passenger will ride the ferry to a beach head, disembark, then continue on land. One complexity of amphibious movement is that the movement rate on land might be different from that at sea. We therefore scale up the movement rates (and the corresponding movement consts) to the product of the two rates.
Definition at line 994 of file pf_tools.c.
void pft_fill_reverse_parameter | ( | const struct civ_map * | nmap, |
struct pf_parameter * | parameter, | ||
struct tile * | target_tile | ||
) |
Fill default parameters for reverse map.
Definition at line 960 of file pf_tools.c.
Referenced by pf_reverse_map_new().
void pft_fill_unit_attack_param | ( | struct pf_parameter * | parameter, |
const struct civ_map * | nmap, | ||
const struct unit * | punit | ||
) |
pft_fill_*_attack_param() base function.
Consider attacking and non-attacking possibilities properly.
Definition at line 949 of file pf_tools.c.
Referenced by dai_fill_unit_param(), find_rampage_target(), find_something_to_kill(), and goto_is_sane().
void pft_fill_unit_overlap_param | ( | struct pf_parameter * | parameter, |
const struct civ_map * | nmap, | ||
const struct unit * | punit | ||
) |
Switch on one tile overlapping into the non-native terrain. For sea/land bombardment and for ferries.
Definition at line 891 of file pf_tools.c.
Referenced by dai_fill_unit_param(), find_best_city_placement(), and find_something_to_kill().
void pft_fill_unit_parameter | ( | struct pf_parameter * | parameter, |
const struct civ_map * | nmap, | ||
const struct unit * | punit | ||
) |
Fill classic parameters for an unit.
Definition at line 840 of file pf_tools.c.
Referenced by auto_settler_setup_work(), calculate_city_clusters(), caravan_search_from(), dai_choose_diplomat_offensive(), dai_fill_unit_param(), dai_find_strategic_airbase(), dai_hunter_manage(), dai_hunter_try_launch(), dai_manage_barbarian_leader(), dai_manage_diplomat(), dai_unit_can_strike_my_unit(), dai_wonder_city_distance(), explorer_goto(), find_best_city_placement(), find_nearest_airbase(), find_nearest_safe_city(), find_something_to_bomb(), goto_fill_parameter_base(), immediate_destination(), look_for_charge(), manage_auto_explorer(), player_restore_units(), settler_evaluate_city_requests(), and settler_evaluate_improvements().
void pft_fill_utype_attack_param | ( | struct pf_parameter * | parameter, |
const struct civ_map * | nmap, | ||
const struct unit_type * | punittype, | ||
struct tile * | pstart_tile, | ||
struct player * | pplayer | ||
) |
pft_fill_*_attack_param() base function.
Consider attacking and non-attacking possibilities properly.
Definition at line 933 of file pf_tools.c.
void pft_fill_utype_overlap_param | ( | struct pf_parameter * | parameter, |
const struct civ_map * | nmap, | ||
const struct unit_type * | punittype, | ||
struct tile * | pstart_tile, | ||
struct player * | pplayer | ||
) |
Switch on one tile overlapping into the non-native terrain. For sea/land bombardment and for ferry types.
Definition at line 876 of file pf_tools.c.
Referenced by find_something_to_kill().
void pft_fill_utype_parameter | ( | struct pf_parameter * | parameter, |
const struct civ_map * | nmap, | ||
const struct unit_type * | punittype, | ||
struct tile * | pstart_tile, | ||
struct player * | pplayer | ||
) |
Fill classic parameters for an unit type.
Definition at line 826 of file pf_tools.c.
Referenced by process_attacker_want().