--- a/src/ai/ai_squirrel.hpp Fri Jun 13 19:57:25 2008 +0000
+++ b/src/ai/ai_squirrel.hpp Fri Jun 13 20:19:00 2008 +0000
@@ -6,7 +6,9 @@
#define AI_SQUIRREL_HPP
#include <map>
+#ifndef AI_CONTROLLER_HPP
struct ltstr { bool operator()(const char *s1, const char *s2) const { return strcmp(s1, s2) < 0; } };
+#endif /* AI_CONTROLLER_HPP */
class AISquirrel {
public:
@@ -16,7 +18,7 @@
/**
* Import a library inside the Squirrel VM.
*/
- bool ImportLibrary(const char *library, const char *class_name, int version, HSQUIRRELVM vm);
+ bool ImportLibrary(const char *library, const char *class_name, int version, HSQUIRRELVM vm, AIController *controller);
/**
* Register a library to be put in the available list.
@@ -91,7 +93,6 @@
class Squirrel *engine;
char *current_script;
char *current_dir;
- int library_instance_count;
};
#endif /* AI_SQUIRREL_HPP */