diff options
Diffstat (limited to 'src/gui/sell.h')
-rw-r--r-- | src/gui/sell.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/gui/sell.h b/src/gui/sell.h index 32a4dc55..e28b0744 100644 --- a/src/gui/sell.h +++ b/src/gui/sell.h @@ -27,8 +27,6 @@ #include <guichan/actionlistener.hpp> #include <guichan/selectionlistener.hpp> -#include <SDL_types.h> - class Item; class ShopItems; class ShopListBox; @@ -41,16 +39,8 @@ class ShopListBox; class SellDialog : public Window, gcn::ActionListener, gcn::SelectionListener { public: - /** - * Constructor. - * - * @see Window::Window - */ SellDialog(int npcId); - /** - * Destructor - */ virtual ~SellDialog(); /** @@ -76,6 +66,11 @@ class SellDialog : public Window, gcn::ActionListener, gcn::SelectionListener void valueChanged(const gcn::SelectionEvent &event); /** + * Allows for quick-selling by extending double-click events. + */ + void mouseClicked(gcn::MouseEvent &mouseEvent); + + /** * Gives Player's Money amount */ void setMoney(int amount); @@ -86,11 +81,6 @@ class SellDialog : public Window, gcn::ActionListener, gcn::SelectionListener void setVisible(bool visible); /** - * Returns true if any instances exist. - */ - static bool isActive() { return instances.size() > 0; } - - /** * Closes all instances. */ static void closeAll(); |