src/ai/api/ai_controller.cpp
author rubidium
Fri, 16 Mar 2007 22:00:07 +0000
branchnoai
changeset 9444 fd27df7ca2a0
parent 9441 03da911c8d5f
child 9724 b39bc69bb2f2
permissions -rw-r--r--
(svn r9260) [NoAI] -Codechange: do the AI threading properly using a mutex and condition signalling.
Note: this is pthread specific code, it needs to be ported to non POSIX platform.
/* $Id$ */

/** @file ai_controller.cpp handles the functions of the AIControler class */

#include "ai_controller.hpp"
#include "../../stdafx.h"
#include "../../openttd.h"
#include "../../player.h"
#include "../ai_threads.h"

void AIController::Sleep(uint ticks)
{
	AI_SuspendPlayer(_current_player, ticks);
}