diff -r 38be66875b45 -r 80fbe02a4184 src/ai/api/ai_accounting.hpp --- a/src/ai/api/ai_accounting.hpp Sun Mar 30 20:58:41 2008 +0000 +++ b/src/ai/api/ai_accounting.hpp Mon Mar 31 06:32:27 2008 +0000 @@ -1,6 +1,6 @@ /* $Id$ */ -/** @file ai_accounting.hpp everything to handle AI accounting things */ +/** @file ai_accounting.hpp Everything to handle AI accounting things. */ #ifndef AI_ACCOUNTING_HPP #define AI_ACCOUNTING_HPP @@ -8,7 +8,8 @@ #include "ai_object.hpp" /** - * Class that handles all AI accounting related functions. + * Class that keeps track of the costs, so you can request how much a block of + * commands did cost in total. Works in both Execute as in Test mode. * Example: * { * local costs = AIAccounting(); @@ -18,12 +19,7 @@ * } */ class AIAccounting : public AIObject { -private: - int32 last_costs; public: - /** - * The name of the class, needed by several sub-processes. - */ static const char *GetClassName() { return "AIAccounting"; } /** @@ -49,6 +45,9 @@ * Reset the costs to zero. */ void ResetCosts(); + +private: + int32 last_costs; }; #endif /* AI_ACCOUNTING_HPP */