diff options
Diffstat (limited to 'src/gui/specialswindow.h')
-rw-r--r-- | src/gui/specialswindow.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/gui/specialswindow.h b/src/gui/specialswindow.h index 81384856..dedeeffc 100644 --- a/src/gui/specialswindow.h +++ b/src/gui/specialswindow.h @@ -23,7 +23,7 @@ #include <vector> -#include "guichanfwd.h" +#include "playerinfo.h" #include "gui/widgets/window.h" @@ -36,7 +36,7 @@ class ScrollArea; class Tab; class TabbedArea; -struct SpecialInfo; +struct SpecialEntry; class SpecialsWindow : public Window, public gcn::ActionListener { public: @@ -49,20 +49,14 @@ class SpecialsWindow : public Window, public gcn::ActionListener { */ void action(const gcn::ActionEvent &actionEvent); - /** - * Update the given special's display - */ - std::string update(int id); - - void loadSpecials(const std::string &file); - - bool hasSpecials() { return !mSpecials.empty(); } + void draw(gcn::Graphics *graphics); private: - std::vector<gcn::Button *> mSpellButtons; - typedef std::map<int, SpecialInfo*> SpecialMap; - SpecialMap mSpecials; + // (re)constructs the list of specials + void rebuild(const std::map<int, Special> &specialData); + TabbedArea *mTabs; + std::map<int, SpecialEntry *> mEntries; }; extern SpecialsWindow *specialsWindow; |