src/ai/ai_threads.h
author truelight
Sat, 24 Mar 2007 14:56:31 +0000
branchnoai
changeset 9516 defc90b7898a
parent 9444 fd27df7ca2a0
child 9724 b39bc69bb2f2
permissions -rw-r--r--
(svn r9428) [NoAI] -Fix: FindBestRoadVehicle returned always INVALID_ENGINE. It is more useful to return best_engine ;)
/* $Id$ */

/** @file ai_threads.h declaration of functions for the AI threading system */

#ifndef AI_THREADS_H
#define AI_THREADS_H

class AIController;

void AI_StartPlayer(PlayerID player, AIController *controller);
void AI_SuspendPlayer(PlayerID player, int timeout);
void AI_RunTick(PlayerID player);
void AI_StopPlayer(PlayerID player);

bool AI_GetCallbackResult(PlayerID player);

#endif /* AI_THREADS_H */