58 const struct player *pplayer)
void * player_ai_data(const struct player *pplayer, const struct ai_type *ai)
Return pointer to ai data of given player and ai type.
struct taimsg_list * msglist
struct taireq_list * reqlist
void tai_msg_to_thr(struct tai_msg *msg)
Send message to thread.
bool tai_thread_running(void)
Return whether player thread is running.
void tai_control_gained(struct ai_type *ait, struct player *pplayer)
We actually control the player.
void tai_control_lost(struct ai_type *ait, struct player *pplayer)
We no longer control the player.
void tai_player_alloc(struct ai_type *ait, struct player *pplayer)
Initialize player for use with threaded AI.
static struct tai_plr * tai_player_data(struct ai_type *ait, const struct player *pplayer)
void tai_player_free(struct ai_type *ait, struct player *pplayer)
Free player from use with threaded AI.
void tai_init_threading(void)
Initialize ai thread.
void tai_req_from_thr(struct tai_req *req)
Thread sends message.
void tai_refresh(struct ai_type *ait, struct player *pplayer)
Check for messages sent by player thread.