#ifndef LOADER_INTERPRETER_H_
#define LOADER_INTERPRETER_H_
+#include "fwd.h"
+#include "PagedAllocator.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:
- explicit Interpreter(const ParsedSource &source) : source(source) { }
+ explicit Interpreter(const ParsedSource &source) : source(source), alloc(4096) { }
~Interpreter();
private:
Interpreter(const Interpreter &);
private:
const ParsedSource &source;
+ PagedAllocator alloc;
+
std::map<std::string, ParsedDefinition> parsedDefinitions;
std::vector<PostponedDefinition> postponedDefinitions;
std::map<std::string, SDL_Surface *> imageCache;