src/ai/api/ai_controller.cpp
author truebrain
Wed, 26 Mar 2008 15:17:40 +0000
branchnoai
changeset 9823 0b7f816cf46f
parent 9782 e8d8d8894f23
child 9833 89a64246458f
permissions -rw-r--r--
(svn r12431) [NoAI] -Add: added AIEventSubsidiaryOffer, which keeps you informed about new Subsidiaries
/* $Id$ */

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

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

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

/* static */ void AIController::Print(bool error_msg, const char *message)
{
	if (error_msg) fprintf(stderr, "%s", message);
	else printf("%s", message);
}