#define LOADER_INTERPRETER_H_
#include "../geometry/Vector.h"
+#include "../graphics/Color.h"
#include "../graphics/ComplexAnimation.h"
#include <map>
public:
graphics::Animation *GetAnimation(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);
graphics::Frame *GetFrame(const std::string &name);
graphics::Gauge *GetGauge(const std::string &name);
public:
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; }
const std::vector<graphics::Font *> &Fonts() const { return fonts; }
const std::vector<graphics::Frame *> &Frames() const { return frames; }
void ReadObject(const Definition &);
graphics::Animation *GetAnimation(const Value &);
+ graphics::Color GetColor(const Value &);
bool GetBoolean(const Value &);
graphics::Font *GetFont(const Value &);
graphics::Frame *GetFrame(const Value &);
const ParsedSource &source;
enum Type {
BOOLEAN,
+ COLOR,
COMPLEX_ANIMATION,
FONT,
FRAME,
std::map<std::string, SDL_Surface *> imageCache;
std::vector<bool> booleans;
+ std::vector<graphics::Color> colors;
std::vector<graphics::ComplexAnimation *> complexAnimations;
std::vector<graphics::Font *> fonts;
std::vector<graphics::Frame *> frames;