#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 <map>
#include <set>
#include <vector>
#include <SDL.h>
-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:
};
public:
- Interpreter(const ParsedSource &source) : source(source) { }
+ explicit Interpreter(const ParsedSource &source) : source(source) { }
~Interpreter();
private:
Interpreter(const Interpreter &);
};
const std::set<std::string> &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<std::string, SDL_Surface *> &Images() const { return imageCache; }
const std::vector<PostponedDefinition> &PostponedDefinitions() const { return postponedDefinitions; }
const std::map<int, std::vector<void *> > &Values() const { return values; }