src/ai/api/ai_controller.cpp
author truebrain
Wed, 23 Apr 2008 12:05:32 +0000
branchnoai
changeset 10308 0c81dfce3e9b
parent 9851 a5f5a7cf2b61
child 10643 970417eef395
permissions -rw-r--r--
(svn r12849) [NoAI] -Fix: when .hpp.sq doesn't exists, don't run diff (tnx to Yexo)
/* $Id$ */

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

#include "ai_controller.hpp"
#include "ai_object.hpp"
#include "ai_log.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)
{
	AILog::Log(error_msg ? AILog::LOG_SQ_ERROR : AILog::LOG_SQ_INFO, message);
}