Freeciv21
Develop your civilization from humble roots to a global empire
texaicity.h File Reference
#include "daicity.h"
+ Include dependency graph for texaicity.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  texai_city
 

Functions

void texai_city_alloc (struct ai_type *ait, struct city *pcity)
 Initialize city for use with tex AI. More...
 
void texai_city_free (struct ai_type *ait, struct city *pcity)
 Free city from use with tex AI. More...
 
void texai_city_worker_requests_create (struct ai_type *ait, struct player *pplayer, struct city *pcity)
 Create worker request for the city. More...
 
void texai_city_worker_wants (struct ai_type *ait, struct player *pplayer, struct city *pcity)
 Set wants for worker-type units. More...
 
void texai_req_worker_task_rcv (struct texai_req *req)
 Receive message from thread to main thread. More...
 
static struct texai_citytexai_city_data (struct ai_type *ait, const struct city *pcity)
 

Function Documentation

◆ texai_city_alloc()

void texai_city_alloc ( struct ai_type ait,
struct city pcity 
)

Initialize city for use with tex AI.

Definition at line 584 of file texaicity.c.

Referenced by texwai_city_alloc().

◆ texai_city_data()

static struct texai_city* texai_city_data ( struct ai_type ait,
const struct city pcity 
)
inlinestatic

◆ texai_city_free()

void texai_city_free ( struct ai_type ait,
struct city pcity 
)

Free city from use with tex AI.

Definition at line 598 of file texaicity.c.

Referenced by texwai_city_free().

◆ texai_city_worker_requests_create()

void texai_city_worker_requests_create ( struct ai_type ait,
struct player pplayer,
struct city pcity 
)

Create worker request for the city.

Only tasks that existing units can do are created.

Definition at line 68 of file texaicity.c.

◆ texai_city_worker_wants()

void texai_city_worker_wants ( struct ai_type ait,
struct player pplayer,
struct city pcity 
)

Set wants for worker-type units.

Definition at line 91 of file texaicity.c.

◆ texai_req_worker_task_rcv()

void texai_req_worker_task_rcv ( struct texai_req req)

Receive message from thread to main thread.

Definition at line 549 of file texaicity.c.

Referenced by texai_refresh().