151 info->
id = pcity->
id;
196 pcity->
id = info->
id;
206 pcity->
owner = pplayer;
208 log_error(
"Tex: requested change on city id %d that's not known.",
232 info->
id = pcity->
id;
256 log_error(
"Tex: requested removal of city id %d that's not known.",
367 log_error(
"Tex: requested removal of unit id %d that's not known.",
404 log_error(
"Tex: requested moving of unit id %d that's not known.",
struct city * create_city_virtual(struct player *pplayer, struct tile *ptile, const char *name)
void destroy_city_virtual(struct city *pcity)
#define city_tile(_pcity_)
#define city_owner(_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 * punit
void idex_free(struct world *iworld)
void idex_register_unit(struct world *iworld, struct unit *punit)
struct city * idex_lookup_city(struct world *iworld, int id)
void idex_unregister_city(struct world *iworld, struct city *pcity)
void idex_init(struct world *iworld)
struct unit * idex_lookup_unit(struct world *iworld, int id)
void idex_unregister_unit(struct world *iworld, struct unit *punit)
void idex_register_city(struct world *iworld, struct city *pcity)
void adv_city_free(struct city *pcity)
void adv_city_alloc(struct city *pcity)
#define fc_assert(condition)
#define log_error(message,...)
void map_free(struct civ_map *fmap)
void map_allocate(struct civ_map *amap)
void map_init_topology(struct civ_map *nmap)
struct tile * index_to_tile(const struct civ_map *imap, int mindex)
void map_init(struct civ_map *imap, bool server_side)
void * player_ai_data(const struct player *pplayer, const struct ai_type *ai)
struct player * player_by_number(const int player_id)
int player_number(const struct player *pplayer)
const struct unit_type * utype
struct ai_type * texai_get_self(void)
void texai_send_msg(enum texaimsgtype type, struct player *pplayer, void *data)
bool texai_thread_running(void)
static void texai_city_update(struct city *pcity, enum texaimsgtype msgtype)
void texai_city_info_recv(void *data, enum texaimsgtype msgtype)
struct civ_map * texai_map_get(void)
void texai_city_created(struct city *pcity)
void texai_city_destruction_recv(void *data)
void texai_city_destroyed(struct city *pcity)
void texai_unit_destroyed(struct unit *punit)
static void texai_unit_update(struct unit *punit, enum texaimsgtype msgtype)
void texai_tile_info_recv(void *data)
void texai_map_close(void)
void texai_unit_changed(struct unit *punit)
void texai_world_init(void)
void texai_tile_info(struct tile *ptile)
void texai_city_changed(struct city *pcity)
void texai_unit_move_seen(struct unit *punit)
void texai_unit_info_recv(void *data, enum texaimsgtype msgtype)
void texai_unit_created(struct unit *punit)
struct city * texai_map_city(int city_id)
void texai_unit_moved_recv(void *data)
void texai_map_init(void)
static struct world texai_world
void texai_world_close(void)
void texai_unit_destruction_recv(void *data)
void tile_set_worked(struct tile *ptile, struct city *pcity)
struct unit * unit_virtual_create(struct player *pplayer, struct city *pcity, const struct unit_type *punittype, int veteran_level)
void unit_virtual_destroy(struct unit *punit)
void unit_tile_set(struct unit *punit, struct tile *ptile)
const struct unit_type * unit_type_get(const struct unit *punit)
struct unit_type * utype_by_number(const Unit_type_id id)
Unit_type_id utype_number(const struct unit_type *punittype)