Files @ r11069:3f09c162966b
Branch filter:

Location: cpp/openttd-patchpack/source/src/ai/api/ai_accounting.cpp

rubidium
(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.
/* $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);
}