src/ai/api/ai_controller.cpp
author rubidium
Sat, 12 Apr 2008 21:38:49 +0000
branchnoai
changeset 10142 56ee7da4ad56
parent 9851 a5f5a7cf2b61
child 10643 970417eef395
permissions -rw-r--r--
(svn r12673) [NoAI] -Sync: with trunk r12596:12672. Note that due to the order rewrite AIOrder.ChangeOrder does currently not work as expected.
/* $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);
}