Freeciv21
Develop your civilization from humble roots to a global empire
texaiworld.h
Go to the documentation of this file.
1 /*__ ___ ***************************************
2 / \ / \ Copyright (c) 1996-2020 Freeciv21 and Freeciv
3 \_ \ / __/ contributors. This file is part of Freeciv21.
4  _\ \ / /__ Freeciv21 is free software: you can redistribute it
5  \___ \____/ __/ and/or modify it under the terms of the GNU General
6  \_ _/ Public License as published by the Free Software
7  | @ @ \_ Foundation, either version 3 of the License,
8  | or (at your option) any later version.
9  _/ /\ You should have received a copy of the GNU
10  /o) (o/\ \_ General Public License along with Freeciv21.
11  \_____/ / If not, see https://www.gnu.org/licenses/.
12  \____/ ********************************************************/
13 #pragma once
14 
15 #include "texaimsg.h"
16 
17 void texai_world_init(void);
18 void texai_world_close(void);
19 
20 void texai_map_init(void);
21 void texai_map_close(void);
22 struct civ_map *texai_map_get(void);
23 
24 void texai_tile_info(struct tile *ptile);
25 void texai_tile_info_recv(void *data);
26 
27 void texai_city_created(struct city *pcity);
28 void texai_city_changed(struct city *pcity);
29 void texai_city_info_recv(void *data, enum texaimsgtype msgtype);
30 void texai_city_destroyed(struct city *pcity);
31 void texai_city_destruction_recv(void *data);
32 struct city *texai_map_city(int city_id);
33 
34 void texai_unit_created(struct unit *punit);
35 void texai_unit_changed(struct unit *punit);
36 void texai_unit_info_recv(void *data, enum texaimsgtype msgtype);
37 void texai_unit_destroyed(struct unit *punit);
38 void texai_unit_destruction_recv(void *data);
39 void texai_unit_move_seen(struct unit *punit);
40 void texai_unit_moved_recv(void *data);
Definition: city.h:291
Definition: tile.h:42
Definition: unit.h:134
void texai_city_info_recv(void *data, enum texaimsgtype msgtype)
Receive city update to the thread.
Definition: texaiworld.c:159
void texai_city_created(struct city *pcity)
New city has been added to the main map.
Definition: texaiworld.c:143
void texai_city_destruction_recv(void *data)
Receive city destruction to the thread.
Definition: texaiworld.c:211
void texai_city_destroyed(struct city *pcity)
City has been removed from the main map.
Definition: texaiworld.c:197
void texai_unit_destroyed(struct unit *punit)
Unit has been removed from the main map.
Definition: texaiworld.c:305
struct civ_map * texai_map_get(void)
Return tex worldmap.
Definition: texaiworld.c:81
void texai_tile_info_recv(void *data)
Receive tile update to the thread.
Definition: texaiworld.c:108
void texai_map_close(void)
Free resources allocated for texai world map.
Definition: texaiworld.c:86
void texai_unit_changed(struct unit *punit)
Unit (potentially) changed in main map.
Definition: texaiworld.c:256
void texai_world_init(void)
Initialize world object for texai.
Definition: texaiworld.c:62
void texai_tile_info(struct tile *ptile)
Tile info updated on main map.
Definition: texaiworld.c:91
void texai_city_changed(struct city *pcity)
City on main map has (potentially) changed.
Definition: texaiworld.c:151
void texai_unit_move_seen(struct unit *punit)
Unit has moved in the main map.
Definition: texaiworld.c:341
void texai_unit_info_recv(void *data, enum texaimsgtype msgtype)
Receive unit update to the thread.
Definition: texaiworld.c:264
void texai_unit_created(struct unit *punit)
New unit has been added to the main map.
Definition: texaiworld.c:248
void texai_unit_moved_recv(void *data)
Receive unit move to the thread.
Definition: texaiworld.c:357
void texai_map_init(void)
Initialize world map for texai.
Definition: texaiworld.c:72
void texai_world_close(void)
Free resources allocated for texai world object.
Definition: texaiworld.c:67
void texai_unit_destruction_recv(void *data)
Receive unit destruction to the thread.
Definition: texaiworld.c:319
struct city * texai_map_city(int city_id)
Get city from the tex map.
Definition: texaiworld.c:189