File diff r10695:3124a970a753 → r10696:8dfe83e30d01
src/ai/api/ai_accounting.cpp
Show inline comments
 
new file 100644
 
/* $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);
 
}