private:
const ParsedSource &source;
- enum DynamicType {
- ANIMATION,
+ enum Type {
COMPLEX_ANIMATION,
HERO,
MONSTER,
SPRITE,
};
struct ParsedDefinition {
- ParsedDefinition(const Definition *dfn, DynamicType type, int index)
+ ParsedDefinition(const Definition *dfn, Type type, int index)
: dfn(dfn), type(type), index(index) { }
- bool IsCompatible(DynamicType with) const;
const Definition *dfn;
- DynamicType type;
+ Type type;
int index;
};
std::map<std::string, ParsedDefinition> parsedDefinitions;
- std::vector<graphics::Animation *> animations;
+ std::vector<graphics::ComplexAnimation *> complexAnimations;
std::vector<battle::Hero *> heroes;
std::vector<SDL_Surface *> images;
std::vector<battle::Monster *> monsters;
std::vector<int> numbers;
+ std::vector<graphics::SimpleAnimation *> simpleAnimations;
std::vector<graphics::Sprite *> sprites;
};