]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/Caster.h
activated the loader
[l2e.git] / src / loader / Caster.h
index 31ce61226677f40f8d32645bbf1d861e6680f3bf..05eada4c8b5ef964cb00aae94bc691050de56732 100644 (file)
@@ -1,11 +1,27 @@
 #ifndef LOADER_CASTER_H_
 #define LOADER_CASTER_H_
 
-#include "Interpreter.h"
-#include "../battle/fwd.h"
-#include "../common/fwd.h"
-#include "../map/fwd.h"
-#include "../menu/fwd.h"
+namespace battle {
+       struct Resources;
+       class Monster;
+       class PartyLayout;
+}
+namespace common {
+       class Capsule;
+       class Hero;
+       class Item;
+       class Spell;
+}
+namespace loader {
+       class Interpreter;
+       class Loader;
+}
+namespace map {
+       class Map;
+}
+namespace menu {
+       struct Resources;
+}
 
 #include <string>
 
@@ -14,7 +30,7 @@ namespace loader {
 class Caster {
 
 public:
-       Caster(Interpreter &intp);
+       Caster(Loader &ld, Interpreter &intp);
        ~Caster() { }
 private:
        Caster(const Caster &);
@@ -32,10 +48,14 @@ public:
        common::Spell *GetSpell(const std::string &identifier);
 
 private:
+       void *GetObject(int typeId, const std::string &ident);
+
+private:
+       Loader &ld;
        Interpreter &intp;
 
 };
 
 }
 
-#endif /* LOADER_CASTER_H_ */
+#endif