author | rubidium |
Tue, 08 Apr 2008 07:19:02 +0000 | |
branch | noai |
changeset 10093 | b3849a19d137 |
parent 9833 | 89a64246458f |
child 10196 | aecabd927420 |
permissions | -rw-r--r-- |
/* $Id$ */ /** @file ai_accounting.cpp Implementation of AIAccounting. */ #include "ai_accounting.hpp" int32 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); }