# ai_accounting.cpp

Go to the documentation of this file.

    00001 /* $Id: ai_accounting.cpp 15060 2009-01-13 15:44:36Z smatz $ */
    00002
    00005 #include "ai_accounting.hpp"
    00006
    00007 Money AIAccounting::GetCosts()
    00008 {
    00009   return this->GetDoCommandCosts();
    00010 }
    00011
    00012 void AIAccounting::ResetCosts()
    00013 {
    00014   this->SetDoCommandCosts(0);
    00015 }
    00016
    00017 AIAccounting::AIAccounting()
    00018 {
    00019   this->last_costs = this->GetDoCommandCosts();
    00020   this->SetDoCommandCosts(0);
    00021 }
    00022
    00023 AIAccounting::~AIAccounting()
    00024 {
    00025   this->SetDoCommandCosts(this->last_costs);
    00026 }