X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Floader%2FInterpreter.h;h=cf08009e2907618b042fd2ab72eafb964e5ced9f;hb=d003612c783c271285c437e47f4ab671405fa402;hp=ca9900cb7ada7148801ec47f7a872c19345d0672;hpb=f6d399c08f0878459bcd1c6b3f4958f300243a71;p=l2e.git diff --git a/src/loader/Interpreter.h b/src/loader/Interpreter.h index ca9900c..cf08009 100644 --- a/src/loader/Interpreter.h +++ b/src/loader/Interpreter.h @@ -28,6 +28,7 @@ namespace graphics { class Animation; class Font; class Frame; + class Gauge; class SimpleAnimation; class Sprite; } @@ -62,6 +63,7 @@ public: bool GetBoolean(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); battle::Hero *GetHero(const std::string &name); battle::Monster *GetMonster(const std::string &name); int GetNumber(const std::string &name) const; @@ -75,6 +77,7 @@ public: const std::vector &ComplexAnimations() const { return complexAnimations; } const std::vector &Fonts() const { return fonts; } const std::vector &Frames() const { return frames; } + const std::vector &Gauges() const { return gauges; } const std::vector &Heroes() const { return heroes; } const std::vector &Images() const { return images; } const std::vector &Monsters() const { return monsters; } @@ -94,6 +97,7 @@ private: bool GetBoolean(const Value &); graphics::Font *GetFont(const Value &); graphics::Frame *GetFrame(const Value &); + graphics::Gauge *GetGauge(const Value &); SDL_Surface *GetImage(const Value &); int GetNumber(const Value &); battle::PartyLayout *GetPartyLayout(const Value &); @@ -108,6 +112,7 @@ private: void ReadComplexAnimationFrame(graphics::ComplexAnimation::FrameProp &, const PropertyList &); void ReadFont(graphics::Font &, const PropertyList &); void ReadFrame(graphics::Frame &, const PropertyList &); + void ReadGauge(graphics::Gauge &, const PropertyList &); void ReadHero(battle::Hero &, const PropertyList &); void ReadMonster(battle::Monster &, const PropertyList &); void ReadPartyLayout(battle::PartyLayout &, const PropertyList &); @@ -122,6 +127,7 @@ private: COMPLEX_ANIMATION, FONT, FRAME, + GAUGE, HERO, IMAGE, MONSTER, @@ -147,6 +153,7 @@ private: std::vector complexAnimations; std::vector fonts; std::vector frames; + std::vector gauges; std::vector heroes; std::vector images; std::vector monsters;