X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FInterpreter.h;h=9e90bcc4e98fd51d9f7b05594308b689a6df3d01;hb=350233c2834eb36e66220aba490f1876bd6b19bf;hp=b12efaedebb35fe3fac09057ffb13600aa3348ff;hpb=02db07fbdd774a0a3b10806aa77d782059ba62cc;p=l2e.git diff --git a/src/loader/Interpreter.h b/src/loader/Interpreter.h index b12efae..9e90bcc 100644 --- a/src/loader/Interpreter.h +++ b/src/loader/Interpreter.h @@ -8,11 +8,15 @@ #ifndef LOADER_INTERPRETER_H_ #define LOADER_INTERPRETER_H_ +#include "fwd.h" #include "ParsedSource.h" #include "TypeDescription.h" +#include "../battle/fwd.h" +#include "../common/fwd.h" #include "../geometry/Vector.h" #include "../graphics/Color.h" #include "../graphics/ComplexAnimation.h" +#include "../graphics/fwd.h" #include #include @@ -21,38 +25,8 @@ #include #include -namespace battle { - class Hero; - class Monster; - class PartyLayout; - struct Resources; - class Stats; -} - -namespace common { - class Ikari; - class Item; - class Spell; - class TargetingMode; -} - -namespace graphics { - class Animation; - class Font; - class Frame; - class Gauge; - struct MenuProperties; - class SimpleAnimation; - class Sprite; -} - namespace loader { -class Definition; -class Literal; -class PropertyList; -class Value; - class Interpreter { public: @@ -62,7 +36,7 @@ public: }; public: - Interpreter(const ParsedSource &source) : source(source) { } + explicit Interpreter(const ParsedSource &source) : source(source) { } ~Interpreter(); private: Interpreter(const Interpreter &); @@ -92,7 +66,7 @@ public: }; const std::set &ExportedIdentifiers() const { return source.Exports(); } - const ParsedDefinition &GetDefinition(const std::string &identifier) const { return parsedDefinitions.at(identifier); } + const ParsedDefinition &GetDefinition(const std::string &identifier) const; const std::map &Images() const { return imageCache; } const std::vector &PostponedDefinitions() const { return postponedDefinitions; } const std::map > &Values() const { return values; }