Files @ r12029:5b077ec055c0
Branch filter:

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

smatz
(svn r16441) -Codechange: new class SpecializedVehicle used as superclass for all vehicle types
/* $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);
}