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/ai/ai_instance.hpp | |
parent | afdb67a3534f85b4efbd3327ece8137211042d7b (diff) | |
download | openttd-98103121d4f2ed1f1581919b7b1f343ccd410c12.tar.xz |
(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)
Diffstat (limited to 'src/ai/ai_instance.hpp')
-rw-r--r-- | src/ai/ai_instance.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ai/ai_instance.hpp b/src/ai/ai_instance.hpp index 085e2cbca..4e6598342 100644 --- a/src/ai/ai_instance.hpp +++ b/src/ai/ai_instance.hpp @@ -77,8 +77,8 @@ private: /** Runtime information about an AI like a pointer to the squirrel vm and the current state. */ class AIInstance { public: - friend class AIObject; - friend class AIController; + friend class ScriptObject; + friend class ScriptController; /** * Create a new AI. @@ -141,7 +141,7 @@ public: /** * Get the controller attached to the instance. */ - class AIController *GetController() { return controller; } + class ScriptController *GetController() { return controller; } /** * Return the "this AI died" value @@ -198,10 +198,10 @@ public: * Insert an event for this AI. * @param event The event to insert. */ - void InsertEvent(class AIEvent *event); + void InsertEvent(class ScriptEvent *event); private: - class AIController *controller; ///< The AI main class. + class ScriptController *controller; ///< The AI main class. class AIStorage *storage; ///< Some global information for each running AI. class Squirrel *engine; ///< A wrapper around the squirrel vm. SQObject *instance; ///< Squirrel-pointer to the AI main class. |