Freeciv-3.1: /fast/freeciv/nightly/S3_1/ai/tex/texaimsg.c File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
texaimsg.c File Reference
`#include "texaiplayer.h"`
`#include "texaimsg.h"`

Go to the source code of this file.

## Functions

void | texai_send_msg (enum texaimsgtype type, struct player *pplayer, void *data)
void | texai_send_req (enum texaireqtype type, struct player *pplayer, void *data)
void | texai_first_activities (struct ai_type *ait, struct player *pplayer)
void | texai_phase_finished (struct ai_type *ait, struct player *pplayer)

## Function Documentation

## ◆ texai_first_activities()

void texai_first_activities | ( | struct ai_type * | ait,
|  | struct player * | pplayer
| ) |  |

Time for phase first activities

Definition at line 63 of file texaimsg.c.

Referenced by texwai_first_activities(), and texwai_restart_phase().

## ◆ texai_phase_finished()

void texai_phase_finished | ( | struct ai_type * | ait,
|  | struct player * | pplayer
| ) |  |

Player phase has finished

Definition at line 71 of file texaimsg.c.

Referenced by texwai_phase_finished().

## ◆ texai_send_msg()

void texai_send_msg | ( | enum texaimsgtype | type,
|  | struct player * | pplayer,
|  | void * | data
| ) |  |

Construct and send message to player thread.

Definition at line 26 of file texaimsg.c.

Referenced by texai_city_destroyed(), texai_city_update(), texai_control_lost(), texai_first_activities(), texai_map_alloc(), texai_map_free(), texai_phase_finished(), texai_tile_info(), texai_unit_destroyed(), texai_unit_move_seen(), and texai_unit_update().

## ◆ texai_send_req()

void texai_send_req | ( | enum texaireqtype | type,
|  | struct player * | pplayer,
|  | void * | data
| ) |  |

Construct and send request from player thread.

Definition at line 48 of file texaimsg.c.

Referenced by texai_check_messages(), and texai_city_worker_requests_create().