24#define SINGLE_MOVE (terrain_control.move_fragments)
25#define MOVE_COST_IGTER (terrain_control.igter_cost)
27#define MAX_MOVE_FRAGS 65535
65 const struct tile *ptile,
66 const struct tile *pexclude);
69 const struct tile *ptile);
81 const struct tile *ptile)
89 const struct tile *src_tile,
90 const struct tile *dst_tile);
93 const struct tile *ptile);
96 const struct tile *ptile);
101 const struct tile *ptile);
104 const struct tile *src_tile,
105 const struct tile *dst_tile,
109 const struct tile *ptile,
111 bool enter_transport,
112 bool enter_enemy_city);
116 enum unit_activity activity,
117 const struct tile *src_tile,
118 const struct tile *dst_tile,
120 bool enter_transport,
struct unit *embark_to,
121 bool enter_enemy_city);
125 enum unit_activity activity,
126 const struct tile *src_tile,
127 const struct tile *dst_tile,
128 bool enter_transport,
struct unit *embark_to,
129 bool enter_enemy_city);
138 const char *none,
bool align);
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
const char * move_points_text(int mp, bool reduce)
bool unit_can_move_to_tile(const struct civ_map *nmap, const struct unit *punit, const struct tile *ptile, bool igzoc, bool enter_transport, bool enter_enemy_city)
const char * move_points_text_full(int mp, bool reduce, const char *prefix, const char *none, bool align)
bool can_exist_at_tile(const struct civ_map *nmap, const struct unit_type *utype, const struct tile *ptile)
enum unit_move_result unit_move_to_tile_test(const struct civ_map *nmap, const struct unit *punit, enum unit_activity activity, const struct tile *src_tile, const struct tile *dst_tile, bool igzoc, bool enter_transport, struct unit *embark_to, bool enter_enemy_city)
bool can_unit_exist_at_tile(const struct civ_map *nmap, const struct unit *punit, const struct tile *ptile)
bool is_native_tile(const struct unit_type *punittype, const struct tile *ptile)
bool can_step_taken_wrt_to_zoc(const struct unit_type *punittype, const struct player *unit_owner, const struct tile *src_tile, const struct tile *dst_tile, const struct civ_map *zmap)
int utype_unknown_move_cost(const struct unit_type *utype)
bool unit_can_load(const struct unit *punit)
bool can_unit_transport(const struct unit *transporter, const struct unit *transported)
int unit_move_rate(const struct unit *punit)
bool unit_could_load_at(const struct unit *punit, const struct tile *ptile)
static bool is_native_tile_to_class(const struct unit_class *punitclass, const struct tile *ptile)
bool can_attack_from_non_native(const struct unit_type *utype)
@ MR_DESTINATION_OCCUPIED_BY_NON_ALLIED_UNIT
@ MR_DESTINATION_OCCUPIED_BY_NON_ALLIED_CITY
@ MR_NO_TRANSPORTER_CAPACITY
enum unit_move_result unit_teleport_to_tile_test(const struct civ_map *nmap, const struct unit *punit, enum unit_activity activity, const struct tile *src_tile, const struct tile *dst_tile, bool enter_transport, struct unit *embark_to, bool enter_enemy_city)
bool unit_can_defend_here(const struct civ_map *nmap, const struct unit *punit)
bool is_native_move(const struct civ_map *nmap, const struct unit_class *punitclass, const struct tile *src_tile, const struct tile *dst_tile)
bool is_native_to_class(const struct unit_class *punitclass, const struct terrain *pterrain, const bv_extras *extras)
int utype_move_rate(const struct unit_type *utype, const struct tile *ptile, const struct player *pplayer, int veteran_level, int hitpoints)
bool is_city_channel_tile(const struct civ_map *nmap, const struct unit_class *punitclass, const struct tile *ptile, const struct tile *pexclude)
bool can_unit_survive_at_tile(const struct civ_map *nmap, const struct unit *punit, const struct tile *ptile)
bool is_native_near_tile(const struct civ_map *nmap, const struct unit_class *uclass, const struct tile *ptile)
bool can_unit_type_transport(const struct unit_type *transporter, const struct unit_class *transported)
void init_move_fragments(void)
bool can_attack_non_native(const struct unit_type *utype)
#define tile_terrain(_tile)
static const bv_extras * tile_extras(const struct tile *ptile)