class Hero;
class Monster;
class PartyLayout;
+ struct Resources;
class Stats;
}
public:
graphics::Animation *GetAnimation(const std::string &name);
+ battle::Resources *GetBattleResources(const std::string &name);
bool GetBoolean(const std::string &name) const;
const graphics::Color &GetColor(const std::string &name) const;
graphics::Font *GetFont(const std::string &name);
geometry::Vector<int> GetVector(const std::string &name) const;
public:
+ const std::vector<battle::Resources *> &BattleResources() const { return battleResources; }
const std::vector<bool> &Booleans() const { return booleans; }
const std::vector<graphics::Color> &Colors() const { return colors; }
const std::vector<graphics::ComplexAnimation *> &ComplexAnimations() const { return complexAnimations; }
void ReadObject(const Definition &);
graphics::Animation *GetAnimation(const Value &);
+ battle::Resources *GetBattleResources(const Value &);
graphics::Color GetColor(const Value &);
bool GetBoolean(const Value &);
graphics::Font *GetFont(const Value &);
const std::vector<Value *> &GetValueArray(const Value &);
geometry::Vector<int> GetVector(const Value &);
+ void ReadBattleResources(battle::Resources &, const PropertyList &);
void ReadComplexAnimation(graphics::ComplexAnimation &, const PropertyList &);
void ReadComplexAnimationFrame(graphics::ComplexAnimation::FrameProp &, const PropertyList &);
void ReadFont(graphics::Font &, const PropertyList &);
private:
const ParsedSource &source;
enum Type {
+ BATTLE_RESOURCES,
BOOLEAN,
COLOR,
COMPLEX_ANIMATION,
std::map<std::string, SDL_Surface *> imageCache;
+ std::vector<battle::Resources *> battleResources;
std::vector<bool> booleans;
std::vector<graphics::Color> colors;
std::vector<graphics::ComplexAnimation *> complexAnimations;