author | rubidium |
Wed, 09 Jan 2008 18:11:12 +0000 | |
branch | noai |
changeset 9723 | eee46cb39750 |
parent 9452 | 4c5eedbc3ba9 |
child 9833 | 89a64246458f |
permissions | -rw-r--r-- |
/* $Id$ */ /** @file ai_accounting.cpp everything to handle AI accounting things */ #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); }