src/ai/api/ai_accounting.cpp
author truebrain
Mon, 21 Apr 2008 20:52:54 +0000
branchnoai
changeset 10292 7856e972f8aa
parent 10196 aecabd927420
permissions -rw-r--r--
(svn r12825) [NoAI] -Fix r12823: minor documentation clearup
/* $Id$ */

/** @file ai_accounting.cpp Implementation of AIAccounting. */

#include "ai_accounting.hpp"

Money AIAccounting::GetCosts()
{
	return this->GetDoCommandCosts();
}

void AIAccounting::ResetCosts()
{
	this->SetDoCommandCosts(0);
}

AIAccounting::AIAccounting()
{
	this->last_costs = this->GetDoCommandCosts();
	this->SetDoCommandCosts(0);
}

AIAccounting::~AIAccounting()
{
	this->SetDoCommandCosts(this->last_costs);
}