Freeciv21
Develop your civilization from humble roots to a global empire
pf_parameter Struct Reference

#include <path_finding.h>

+ Collaboration diagram for pf_parameter:

Public Attributes

const struct civ_mapmap
 
struct tilestart_tile
 
int moves_left_initially
 
int fuel_left_initially
 
const struct unit_typetransported_by_initially
 
int cargo_depth
 
bv_unit_types cargo_types
 
int move_rate
 
int fuel
 
const struct unit_typeutype
 
const struct playerowner
 
bool omniscience
 
int(* get_MC )(const struct tile *from_tile, enum pf_move_scope src_move_scope, const struct tile *to_tile, enum pf_move_scope dst_move_scope, const struct pf_parameter *param)
 
enum pf_move_scope(* get_move_scope )(const struct tile *ptile, bool *can_disembark, enum pf_move_scope previous_scope, const struct pf_parameter *param)
 
bool ignore_none_scopes
 
enum tile_behavior(* get_TB )(const struct tile *ptile, enum known_type known, const struct pf_parameter *param)
 
int(* get_EC )(const struct tile *ptile, enum known_type known, const struct pf_parameter *param)
 
enum pf_action(* get_action )(const struct tile *ptile, enum known_type known, const struct pf_parameter *param)
 
enum pf_action_account actions
 
bool(* is_action_possible )(const struct tile *from_tile, enum pf_move_scope src_move_scope, const struct tile *to_tile, enum pf_action action, const struct pf_parameter *param)
 
bool(* get_zoc )(const struct player *pplayer, const struct tile *ptile, const struct civ_map *zmap)
 
bool(* is_pos_dangerous )(const struct tile *ptile, enum known_type, const struct pf_parameter *param)
 
int(* get_moves_left_req )(const struct tile *ptile, enum known_type, const struct pf_parameter *param)
 
int(* get_costs )(const struct tile *from_tile, enum direction8 dir, const struct tile *to_tile, int from_cost, int from_extra, int *to_cost, int *to_extra, const struct pf_parameter *param)
 
void * data
 

Detailed Description

Definition at line 339 of file path_finding.h.

Member Data Documentation

◆ actions

enum pf_action_account pf_parameter::actions

◆ cargo_depth

◆ cargo_types

bv_unit_types pf_parameter::cargo_types

◆ data

◆ fuel

◆ fuel_left_initially

◆ get_action

enum pf_action(* pf_parameter::get_action) (const struct tile *ptile, enum known_type known, const struct pf_parameter *param)

◆ get_costs

int(* pf_parameter::get_costs) (const struct tile *from_tile, enum direction8 dir, const struct tile *to_tile, int from_cost, int from_extra, int *to_cost, int *to_extra, const struct pf_parameter *param)

◆ get_EC

◆ get_MC

◆ get_move_scope

enum pf_move_scope(* pf_parameter::get_move_scope) (const struct tile *ptile, bool *can_disembark, enum pf_move_scope previous_scope, const struct pf_parameter *param)

◆ get_moves_left_req

◆ get_TB

◆ get_zoc

bool(* pf_parameter::get_zoc) (const struct player *pplayer, const struct tile *ptile, const struct civ_map *zmap)

◆ ignore_none_scopes

◆ is_action_possible

bool(* pf_parameter::is_action_possible) (const struct tile *from_tile, enum pf_move_scope src_move_scope, const struct tile *to_tile, enum pf_action action, const struct pf_parameter *param)

◆ is_pos_dangerous

◆ map

◆ move_rate

◆ moves_left_initially

◆ omniscience

◆ owner

◆ start_tile

◆ transported_by_initially

◆ utype