130 const struct player *tplayer)
132 if (pplayer == tplayer) {
162 const struct player *other_player,
178 switch (req->
range) {
225 "Invalid unit state property.");
240 switch (req->
range) {
262 FALSE,
"Wrong range");
283 switch (req->
range) {
285 if (other_player ==
NULL
373 "Invalid city tile property.");
384 switch (req->
range) {
455 switch (req->
range) {
597 switch (req->
range) {
664 switch (req->
range) {
724 const struct player *other_player,
750 const struct player *other_player,
int city_map_radius_sq_get(const struct city *pcity)
#define city_tile(_pcity_)
#define city_owner(_pcity_)
#define city_tile_iterate(_nmap, _radius_sq, _city_tile, _tile)
#define city_tile_iterate_end
struct unit struct city struct unit struct tile * target_tile
struct unit struct city * target_city
bool could_intel_with_player(const struct player *pplayer, const struct player *aplayer)
bool is_improvement_visible(const struct impr_type *pimprove)
bool is_great_wonder(const struct impr_type *pimprove)
struct city * city_from_great_wonder(const struct impr_type *pimprove)
#define fc_assert_msg(condition, message,...)
#define fc_assert(condition)
#define fc_assert_ret_val_msg(condition, val, message,...)
#define cardinal_adjc_iterate_end
#define adjc_iterate(nmap, center_tile, itr_tile)
#define cardinal_adjc_iterate(nmap, center_tile, itr_tile)
bool can_player_see_unit(const struct player *pplayer, const struct unit *punit)
bool team_has_embassy(const struct team *pteam, const struct player *tgt_player)
bool player_can_see_city_externals(const struct player *pow_player, const struct city *target_city)
struct player_diplstate * player_diplstate_get(const struct player *plr1, const struct player *plr2)
bool can_player_see_hypotetic_units_at(const struct player *pplayer, const struct tile *ptile)
bool can_player_see_city_internals(const struct player *pplayer, const struct city *pcity)
const struct req_context * req_context_empty(void)
bool is_req_active(const struct req_context *context, const struct player *other_player, const struct requirement *req, const enum req_problem_type prob_type)
#define requirement_vector_iterate_end
#define requirement_vector_iterate(req_vec, preq)
bool tile_is_seen(const struct tile *target_tile, const struct player *pow_player)
struct city * tile_city(const struct tile *ptile)
#define trade_partners_iterate_end
#define trade_partners_iterate(c, p)
enum citytile_type citytile
const struct impr_type * building
enum ustate_prop unit_state