src/ai/api/ai_controller.cpp
author truelight
Sun, 18 Mar 2007 18:02:27 +0000
branchnoai
changeset 9452 4c5eedbc3ba9
parent 9444 fd27df7ca2a0
child 9724 b39bc69bb2f2
permissions -rw-r--r--
(svn r9282) [NoAI] -Add: added AIAccounting, which tracks the cost of your buying/selling.
DoCommand no longer returns the cost, it returns a bool.
Costs are available via this Accounting class.
/* $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);
}