]> git.localhorst.tv Git - l2e.git/blobdiff - src/loader/Interpreter.h
added interpretation of gauges
[l2e.git] / src / loader / Interpreter.h
index ca9900cb7ada7148801ec47f7a872c19345d0672..cf08009e2907618b042fd2ab72eafb964e5ced9f 100644 (file)
@@ -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<graphics::ComplexAnimation *> &ComplexAnimations() const { return complexAnimations; }
        const std::vector<graphics::Font *> &Fonts() const { return fonts; }
        const std::vector<graphics::Frame *> &Frames() const { return frames; }
+       const std::vector<graphics::Gauge *> &Gauges() const { return gauges; }
        const std::vector<battle::Hero *> &Heroes() const { return heroes; }
        const std::vector<SDL_Surface *> &Images() const { return images; }
        const std::vector<battle::Monster *> &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<graphics::ComplexAnimation *> complexAnimations;
        std::vector<graphics::Font *> fonts;
        std::vector<graphics::Frame *> frames;
+       std::vector<graphics::Gauge *> gauges;
        std::vector<battle::Hero *> heroes;
        std::vector<SDL_Surface *> images;
        std::vector<battle::Monster *> monsters;