48#define citizens_iterate(_pcity, _pslot, _nationality) \
49 player_slots_iterate(_pslot) { \
50 citizens _nationality = citizens_nation_get(_pcity, _pslot); \
51 if (_nationality == 0) { \
54#define citizens_iterate_end \
55 } player_slots_iterate_end;
58#define citizens_foreign_iterate(_pcity, _pslot, _nationality) \
59 citizens_iterate(_pcity, _pslot, _nationality) { \
60 if (_pslot == city_owner(_pcity)->slot) { \
63#define citizens_foreign_iterate_end \
64 } citizens_iterate_end;
struct player_slot * citizens_random(const struct city *pcity)
void citizens_free(struct city *pcity)
void citizens_nation_move(struct city *pcity, const struct player_slot *pslot_from, const struct player_slot *pslot_to, int move)
void citizens_nation_add(struct city *pcity, const struct player_slot *pslot, int add)
citizens citizens_nation_get(const struct city *pcity, const struct player_slot *pslot)
void citizens_nation_set(struct city *pcity, const struct player_slot *pslot, citizens count)
citizens citizens_nation_foreign(const struct city *pcity)
citizens citizens_count(const struct city *pcity)
void citizens_init(struct city *pcity)
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 int const struct action *paction struct unit struct city * pcity