Freeciv-3.2
Loading...
Searching...
No Matches
Functions
texaiworld.h File Reference
#include "texaimsg.h"

Go to the source code of this file.

Functions

void texai_world_init (void)
 
void texai_world_close (void)
 
void texai_map_init (void)
 
void texai_map_close (void)
 
struct civ_maptexai_map_get (void)
 
void texai_tile_info (struct tile *ptile)
 
void texai_tile_info_recv (void *data)
 
void texai_city_created (struct city *pcity)
 
void texai_city_changed (struct city *pcity)
 
void texai_city_info_recv (void *data, enum texaimsgtype msgtype)
 
void texai_city_destroyed (struct city *pcity)
 
void texai_city_destruction_recv (void *data)
 
struct citytexai_map_city (int city_id)
 
void texai_unit_created (struct unit *punit)
 
void texai_unit_changed (struct unit *punit)
 
void texai_unit_info_recv (void *data, enum texaimsgtype msgtype)
 
void texai_unit_destroyed (struct unit *punit)
 
void texai_unit_destruction_recv (void *data)
 
void texai_unit_move_seen (struct unit *punit)
 
void texai_unit_moved_recv (void *data)
 

Function Documentation

◆ texai_city_changed()

void texai_city_changed ( struct city pcity)

City on main map has (potentially) changed.

Definition at line 170 of file texaiworld.c.

Referenced by fc_ai_tex_setup().

◆ texai_city_created()

void texai_city_created ( struct city pcity)

New city has been added to the main map.

Definition at line 162 of file texaiworld.c.

Referenced by fc_ai_tex_setup(), and texai_control_gained().

◆ texai_city_destroyed()

void texai_city_destroyed ( struct city pcity)

City has been removed from the main map.

Definition at line 227 of file texaiworld.c.

Referenced by fc_ai_tex_setup().

◆ texai_city_destruction_recv()

void texai_city_destruction_recv ( void data)

Receive city destruction to the thread.

Definition at line 241 of file texaiworld.c.

Referenced by texai_check_messages().

◆ texai_city_info_recv()

void texai_city_info_recv ( void data,
enum texaimsgtype  msgtype 
)

Receive city update to the thread.

Definition at line 178 of file texaiworld.c.

Referenced by texai_check_messages().

◆ texai_map_city()

struct city * texai_map_city ( int  city_id)

Get city from the tex map

Definition at line 219 of file texaiworld.c.

Referenced by texai_check_messages().

◆ texai_map_close()

void texai_map_close ( void  )

Free resources allocated for texai world map

Definition at line 103 of file texaiworld.c.

Referenced by texai_map_free_recv().

◆ texai_map_get()

struct civ_map * texai_map_get ( void  )

Return tex worldmap

Definition at line 95 of file texaiworld.c.

Referenced by texai_check_messages().

◆ texai_map_init()

void texai_map_init ( void  )

Initialize world map for texai

Definition at line 85 of file texaiworld.c.

Referenced by texai_map_alloc_recv(), and texai_thread_start().

◆ texai_tile_info()

void texai_tile_info ( struct tile ptile)

Tile info updated on main map. Send update to tex map.

Definition at line 111 of file texaiworld.c.

Referenced by fc_ai_tex_setup(), and texai_whole_map_copy().

◆ texai_tile_info_recv()

void texai_tile_info_recv ( void data)

Receive tile update to the thread.

Definition at line 127 of file texaiworld.c.

Referenced by texai_check_messages().

◆ texai_unit_changed()

void texai_unit_changed ( struct unit punit)

Unit (potentially) changed in main map.

Definition at line 292 of file texaiworld.c.

Referenced by fc_ai_tex_setup().

◆ texai_unit_created()

void texai_unit_created ( struct unit punit)

New unit has been added to the main map.

Definition at line 284 of file texaiworld.c.

Referenced by fc_ai_tex_setup(), and texai_control_gained().

◆ texai_unit_destroyed()

void texai_unit_destroyed ( struct unit punit)

Unit has been removed from the main map.

Definition at line 339 of file texaiworld.c.

Referenced by fc_ai_tex_setup().

◆ texai_unit_destruction_recv()

void texai_unit_destruction_recv ( void data)

Receive unit destruction to the thread.

Definition at line 353 of file texaiworld.c.

Referenced by texai_check_messages().

◆ texai_unit_info_recv()

void texai_unit_info_recv ( void data,
enum texaimsgtype  msgtype 
)

Receive unit update to the thread.

Definition at line 300 of file texaiworld.c.

Referenced by texai_check_messages().

◆ texai_unit_move_seen()

void texai_unit_move_seen ( struct unit punit)

Unit has moved in the main map.

Definition at line 377 of file texaiworld.c.

Referenced by fc_ai_tex_setup().

◆ texai_unit_moved_recv()

void texai_unit_moved_recv ( void data)

Receive unit move to the thread.

Definition at line 392 of file texaiworld.c.

Referenced by texai_check_messages().

◆ texai_world_close()

void texai_world_close ( void  )

Free resources allocated for texai world object

Definition at line 77 of file texaiworld.c.

Referenced by texai_thread_start().

◆ texai_world_init()

void texai_world_init ( void  )

Initialize world object for texai

Definition at line 69 of file texaiworld.c.

Referenced by texai_thread_start().