summaryrefslogtreecommitdiff
path: root/src/script/api/script_accounting.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2011-11-29 23:15:35 +0000
committertruebrain <truebrain@openttd.org>2011-11-29 23:15:35 +0000
commit98103121d4f2ed1f1581919b7b1f343ccd410c12 (patch)
tree1e760dd6517a6b0f9fb669ec277139a8e3f9a4a3 /src/script/api/script_accounting.hpp
parentafdb67a3534f85b4efbd3327ece8137211042d7b (diff)
downloadopenttd-98103121d4f2ed1f1581919b7b1f343ccd410c12.tar.xz
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
Diffstat (limited to 'src/script/api/script_accounting.hpp')
-rw-r--r--src/script/api/script_accounting.hpp14
1 files changed, 7 insertions, 7 deletions
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:
* <pre>
* {
- * local costs = AIAccounting();
+ * local costs = ScriptAccounting();
* BuildRoad(from_here, to_here);
* BuildRoad(from_there, to_there);
* print("Costs for route is: " + costs.GetCosts());
* }
* </pre>
*/
-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();