Freeciv-3.1: /fast/freeciv/nightly/S3_1/ai/threaded/taimsg.c File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
taimsg.c File Reference
`#include "taiplayer.h"`
`#include "taimsg.h"`

Go to the source code of this file.

## Functions

void | tai_send_msg (enum taimsgtype type, struct player *pplayer, void *data)
void | tai_send_req (enum taireqtype type, struct player *pplayer, void *data)
void | tai_first_activities (struct ai_type *ait, struct player *pplayer)
void | tai_phase_finished (struct ai_type *ait, struct player *pplayer)

## Function Documentation

## ◆ tai_first_activities()

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

Time for phase first activities

Definition at line 63 of file taimsg.c.

Referenced by twai_first_activities(), and twai_restart_phase().

## ◆ tai_phase_finished()

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

Player phase has finished

Definition at line 71 of file taimsg.c.

Referenced by twai_phase_finished().

## ◆ tai_send_msg()

void tai_send_msg | ( | enum taimsgtype | type,
|  | struct player * | pplayer,
|  | void * | data
| ) |  |

Construct and send message to player thread.

Definition at line 26 of file taimsg.c.

Referenced by tai_control_lost(), tai_first_activities(), and tai_phase_finished().

## ◆ tai_send_req()

void tai_send_req | ( | enum taireqtype | type,
|  | struct player * | pplayer,
|  | void * | data
| ) |  |

Construct and send request from player thread.

Definition at line 48 of file taimsg.c.

Referenced by tai_check_messages(), and tai_city_worker_requests_create().