truelight@9452: /* $Id$ */ truelight@9452: truebrain@9833: /** @file ai_accounting.cpp Implementation of AIAccounting. */ truelight@9452: truelight@9452: #include "ai_accounting.hpp" truelight@9452: rubidium@10196: Money AIAccounting::GetCosts() truelight@9452: { truelight@9452: return this->GetDoCommandCosts(); truelight@9452: } truelight@9452: truelight@9452: void AIAccounting::ResetCosts() truelight@9452: { truelight@9452: this->SetDoCommandCosts(0); truelight@9452: } truelight@9452: truelight@9452: AIAccounting::AIAccounting() truelight@9452: { truelight@9452: this->last_costs = this->GetDoCommandCosts(); truelight@9452: this->SetDoCommandCosts(0); truelight@9452: } truelight@9452: truelight@9452: AIAccounting::~AIAccounting() truelight@9452: { truelight@9452: this->SetDoCommandCosts(this->last_costs); truelight@9452: }