diff options
author | truebrain <truebrain@openttd.org> | 2011-11-29 23:15:35 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-29 23:15:35 +0000 |
commit | 98103121d4f2ed1f1581919b7b1f343ccd410c12 (patch) | |
tree | 1e760dd6517a6b0f9fb669ec277139a8e3f9a4a3 /src/script/api/script_object.hpp | |
parent | afdb67a3534f85b4efbd3327ece8137211042d7b (diff) | |
download | openttd-98103121d4f2ed1f1581919b7b1f343ccd410c12.tar.xz |
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
Diffstat (limited to 'src/script/api/script_object.hpp')
-rw-r--r-- | src/script/api/script_object.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/script/api/script_object.hpp b/src/script/api/script_object.hpp index 214d0e7cc..b4b55c740 100644 --- a/src/script/api/script_object.hpp +++ b/src/script/api/script_object.hpp @@ -34,7 +34,7 @@ typedef bool (AIModeProc)(); * internally to have a common place to handle general things, like internal * command processing, and command-validation checks. */ -class AIObject : public SimpleCountedObject { +class ScriptObject : public SimpleCountedObject { friend class AIInstance; #ifndef DOXYGEN_AI_DOCS protected: @@ -45,7 +45,7 @@ protected: * reverts to the active instance it was before instantiating. */ class ActiveInstance { - friend class AIObject; + friend class ScriptObject; public: ActiveInstance(AIInstance *instance); ~ActiveInstance(); @@ -92,12 +92,12 @@ protected: /** * Set the DoCommand last error. */ - static void SetLastError(AIErrorType last_error); + static void SetLastError(ScriptErrorType last_error); /** * Get the DoCommand last error. */ - static AIErrorType GetLastError(); + static ScriptErrorType GetLastError(); /** * Set the road type. @@ -122,7 +122,7 @@ protected: /** * Set the current mode of your AI to this proc. */ - static void SetDoCommandMode(AIModeProc *proc, AIObject *instance); + static void SetDoCommandMode(AIModeProc *proc, ScriptObject *instance); /** * Get the current mode your AI is currently under. @@ -132,7 +132,7 @@ protected: /** * Get the instance of the current mode your AI is currently under. */ - static AIObject *GetDoCommandModeInstance(); + static ScriptObject *GetDoCommandModeInstance(); /** * Set the delay of the DoCommand. |