From 98103121d4f2ed1f1581919b7b1f343ccd410c12 Mon Sep 17 00:00:00 2001 From: truebrain Date: Tue, 29 Nov 2011 23:15:35 +0000 Subject: (svn r23355) -Codechange: rename all AI* to Script* (Rubidium) --- src/script/api/script_accounting.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/script/api/script_accounting.hpp') diff --git a/src/script/api/script_accounting.hpp b/src/script/api/script_accounting.hpp index e01a7684a..dd4702052 100644 --- a/src/script/api/script_accounting.hpp +++ b/src/script/api/script_accounting.hpp @@ -20,40 +20,40 @@ * Example: *
  *   {
- *     local costs = AIAccounting();
+ *     local costs = ScriptAccounting();
  *     BuildRoad(from_here, to_here);
  *     BuildRoad(from_there, to_there);
  *     print("Costs for route is: " + costs.GetCosts());
  *   }
  * 
*/ -class AIAccounting : public AIObject { +class ScriptAccounting : public ScriptObject { public: /** * Creating instance of this class starts counting the costs of commands * from zero. Saves the current value of GetCosts so we can return to * the old value when the instance gets deleted. */ - AIAccounting(); + ScriptAccounting(); /** - * Restore the AIAccounting that was on top when we created this instance. + * Restore the ScriptAccounting that was on top when we created this instance. * So basically restore the value of GetCosts to what it was before we * created this instance. */ - ~AIAccounting(); + ~ScriptAccounting(); /** * Get the current value of the costs. * @return The current costs. - * @note when nesting AIAccounting instances all instances' GetCosts + * @note when nesting ScriptAccounting instances all instances' GetCosts * will always return the value of the 'top' instance. */ Money GetCosts(); /** * Reset the costs to zero. - * @note when nesting AIAccounting instances all instances' ResetCosts + * @note when nesting ScriptAccounting instances all instances' ResetCosts * will always effect on the 'top' instance. */ void ResetCosts(); -- cgit v1.2.3-54-g00ecf