![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <fc_config.h>#include "idex.h"#include "map.h"#include "world_object.h"#include "infracache.h"#include "texaiplayer.h"#include "texaiworld.h"
Include dependency graph for texaiworld.c:Go to the source code of this file.
Classes | |
| struct | texai_tile_info_msg |
| struct | texai_city_info_msg |
| struct | texai_id_msg |
| struct | texai_unit_info_msg |
| struct | texai_unit_move_msg |
Functions | |
| void | texai_world_init (void) |
| Initialize world object for texai. More... | |
| void | texai_world_close (void) |
| Free resources allocated for texai world object. More... | |
| void | texai_map_init (void) |
| Initialize world map for texai. More... | |
| struct civ_map * | texai_map_get (void) |
| Return tex worldmap. More... | |
| void | texai_map_close (void) |
| Free resources allocated for texai world map. More... | |
| void | texai_tile_info (struct tile *ptile) |
| Tile info updated on main map. More... | |
| void | texai_tile_info_recv (void *data) |
| Receive tile update to the thread. More... | |
| static void | texai_city_update (struct city *pcity, enum texaimsgtype msgtype) |
| Send city information to the thread. More... | |
| void | texai_city_created (struct city *pcity) |
| New city has been added to the main map. More... | |
| void | texai_city_changed (struct city *pcity) |
| City on main map has (potentially) changed. More... | |
| void | texai_city_info_recv (void *data, enum texaimsgtype msgtype) |
| Receive city update to the thread. More... | |
| struct city * | texai_map_city (int city_id) |
| Get city from the tex map. More... | |
| void | texai_city_destroyed (struct city *pcity) |
| City has been removed from the main map. More... | |
| void | texai_city_destruction_recv (void *data) |
| Receive city destruction to the thread. More... | |
| static void | texai_unit_update (struct unit *punit, enum texaimsgtype msgtype) |
| Send unit information to the thread. More... | |
| void | texai_unit_created (struct unit *punit) |
| New unit has been added to the main map. More... | |
| void | texai_unit_changed (struct unit *punit) |
| Unit (potentially) changed in main map. More... | |
| void | texai_unit_info_recv (void *data, enum texaimsgtype msgtype) |
| Receive unit update to the thread. More... | |
| void | texai_unit_destroyed (struct unit *punit) |
| Unit has been removed from the main map. More... | |
| void | texai_unit_destruction_recv (void *data) |
| Receive unit destruction to the thread. More... | |
| void | texai_unit_move_seen (struct unit *punit) |
| Unit has moved in the main map. More... | |
| void | texai_unit_moved_recv (void *data) |
| Receive unit move to the thread. More... | |
Variables | |
| static struct world | texai_world |
| void texai_city_changed | ( | struct city * | pcity | ) |
City on main map has (potentially) changed.
Definition at line 151 of file texaiworld.c.
Referenced by fc_ai_tex_setup().
| void texai_city_created | ( | struct city * | pcity | ) |
New city has been added to the main map.
Definition at line 143 of file texaiworld.c.
Referenced by fc_ai_tex_setup(), and texai_control_gained().
| void texai_city_destroyed | ( | struct city * | pcity | ) |
City has been removed from the main map.
Definition at line 197 of file texaiworld.c.
Referenced by fc_ai_tex_setup().
| void texai_city_destruction_recv | ( | void * | data | ) |
Receive city destruction to the thread.
Definition at line 211 of file texaiworld.c.
| void texai_city_info_recv | ( | void * | data, |
| enum texaimsgtype | msgtype | ||
| ) |
Receive city update to the thread.
Definition at line 159 of file texaiworld.c.
|
static |
Send city information to the thread.
Definition at line 126 of file texaiworld.c.
Referenced by texai_city_changed(), and texai_city_created().
| struct city* texai_map_city | ( | int | city_id | ) |
Get city from the tex map.
Definition at line 189 of file texaiworld.c.
| void texai_map_close | ( | void | ) |
Free resources allocated for texai world map.
Definition at line 86 of file texaiworld.c.
Referenced by texai_map_free_recv().
| struct civ_map* texai_map_get | ( | void | ) |
Return tex worldmap.
Definition at line 81 of file texaiworld.c.
| void texai_map_init | ( | void | ) |
Initialize world map for texai.
Definition at line 72 of file texaiworld.c.
Referenced by texai_map_alloc_recv(), and texai_thread_start().
| void texai_tile_info | ( | struct tile * | ptile | ) |
Tile info updated on main map.
Send update to tex map.
Definition at line 91 of file texaiworld.c.
Referenced by fc_ai_tex_setup(), and texai_whole_map_copy().
| void texai_tile_info_recv | ( | void * | data | ) |
Receive tile update to the thread.
Definition at line 108 of file texaiworld.c.
| void texai_unit_changed | ( | struct unit * | punit | ) |
Unit (potentially) changed in main map.
Definition at line 256 of file texaiworld.c.
Referenced by fc_ai_tex_setup().
| void texai_unit_created | ( | struct unit * | punit | ) |
New unit has been added to the main map.
Definition at line 248 of file texaiworld.c.
Referenced by fc_ai_tex_setup(), and texai_control_gained().
| void texai_unit_destroyed | ( | struct unit * | punit | ) |
Unit has been removed from the main map.
Definition at line 305 of file texaiworld.c.
Referenced by fc_ai_tex_setup().
| void texai_unit_destruction_recv | ( | void * | data | ) |
Receive unit destruction to the thread.
Definition at line 319 of file texaiworld.c.
| void texai_unit_info_recv | ( | void * | data, |
| enum texaimsgtype | msgtype | ||
| ) |
Receive unit update to the thread.
Definition at line 264 of file texaiworld.c.
| void texai_unit_move_seen | ( | struct unit * | punit | ) |
Unit has moved in the main map.
Definition at line 341 of file texaiworld.c.
Referenced by fc_ai_tex_setup().
| void texai_unit_moved_recv | ( | void * | data | ) |
Receive unit move to the thread.
Definition at line 357 of file texaiworld.c.
|
static |
Send unit information to the thread.
Definition at line 230 of file texaiworld.c.
Referenced by texai_unit_changed(), and texai_unit_created().
| void texai_world_close | ( | void | ) |
Free resources allocated for texai world object.
Definition at line 67 of file texaiworld.c.
Referenced by texai_thread_start().
| void texai_world_init | ( | void | ) |
Initialize world object for texai.
Definition at line 62 of file texaiworld.c.
Referenced by texai_thread_start().
|
static |
Definition at line 1 of file texaiworld.c.
Referenced by texai_city_destruction_recv(), texai_city_info_recv(), texai_map_city(), texai_map_close(), texai_map_get(), texai_map_init(), texai_tile_info_recv(), texai_unit_destruction_recv(), texai_unit_info_recv(), texai_unit_moved_recv(), texai_world_close(), and texai_world_init().