You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
431 B
C++
27 lines
431 B
C++
/* $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);
|
|
}
|