src/ai/api/ai_controller.cpp
author truebrain
Mon, 31 Mar 2008 08:42:20 +0000
branchnoai
changeset 9838 0839682a601b
parent 9833 89a64246458f
child 9851 a5f5a7cf2b61
permissions -rw-r--r--
(svn r12504) [NoAI] -Documentation: the last few files which now are consistent in their comments (anyway, so I hope :))
/* $Id$ */

/** @file ai_controller.cpp Implementation of AIControler. */

#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);
}