summaryrefslogtreecommitdiff
path: root/src/ai/ai_instance.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ai/ai_instance.hpp')
-rw-r--r--src/ai/ai_instance.hpp10
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.