SellDialog Class Reference
[User interface related classes (windows, dialogs)]

#include <sell.h>

Inheritance diagram for SellDialog:

Window

List of all members.


Detailed Description

The sell dialog.

Definition at line 41 of file sell.h.


Public Member Functions

 SellDialog ()
 Constructor.
virtual ~SellDialog ()
 Destructor.
void reset ()
 Resets the dialog, clearing inventory.
void addItem (const Item *item, int price)
 Adds an item to the inventory.
void action (const gcn::ActionEvent &event)
 Called when receiving actions from the widgets.
void valueChanged (const gcn::SelectionEvent &event)
 Updates labels according to selected item.
void setMoney (int amount)
 Gives Player's Money amount.
void logic ()
 Check for current NPC.
void setVisible (bool visible)
 Sets the visibility of this window.
void close ()
 Closes the Buy Window, as well as resetting the current npc.

Private Member Functions

void updateButtonsAndLabels ()
 Updates the state of buttons and labels.

Private Attributes

gcn::Button * mSellButton
gcn::Button * mQuitButton
gcn::Button * mAddMaxButton
gcn::Button * mIncreaseButton
gcn::Button * mDecreaseButton
ShopListBoxmShopItemList
gcn::ScrollArea * mScrollArea
gcn::Label * mMoneyLabel
gcn::Label * mItemDescLabel
gcn::Label * mItemEffectLabel
gcn::Label * mQuantityLabel
gcn::Slider * mSlider
ShopItemsmShopItems
int mPlayerMoney
int mMaxItems
int mAmountItems

Constructor & Destructor Documentation

SellDialog::SellDialog (  ) 

Constructor.

See also:
Window::Window

Definition at line 45 of file sell.cpp.

SellDialog::~SellDialog (  )  [virtual]

Destructor.

Definition at line 113 of file sell.cpp.


Member Function Documentation

void SellDialog::reset (  ) 

Resets the dialog, clearing inventory.

Definition at line 118 of file sell.cpp.

void SellDialog::addItem ( const Item item,
int  price 
)

Adds an item to the inventory.

Definition at line 129 of file sell.cpp.

void SellDialog::action ( const gcn::ActionEvent &  event  ) 

Called when receiving actions from the widgets.

Definition at line 140 of file sell.cpp.

void SellDialog::valueChanged ( const gcn::SelectionEvent &  event  ) 

Updates labels according to selected item.

See also:
SelectionListener::selectionChanged

Definition at line 224 of file sell.cpp.

void SellDialog::setMoney ( int  amount  ) 

Gives Player's Money amount.

Definition at line 234 of file sell.cpp.

void SellDialog::logic (  ) 

Check for current NPC.

Definition at line 282 of file sell.cpp.

void SellDialog::setVisible ( bool  visible  ) 

Sets the visibility of this window.

Reimplemented from Window.

Definition at line 290 of file sell.cpp.

void SellDialog::close (  )  [virtual]

Closes the Buy Window, as well as resetting the current npc.

Reimplemented from Window.

Definition at line 298 of file sell.cpp.

void SellDialog::updateButtonsAndLabels (  )  [private]

Updates the state of buttons and labels.

Definition at line 240 of file sell.cpp.


Member Data Documentation

gcn::Button* SellDialog::mSellButton [private]

Definition at line 103 of file sell.h.

gcn::Button* SellDialog::mQuitButton [private]

Definition at line 104 of file sell.h.

gcn::Button* SellDialog::mAddMaxButton [private]

Definition at line 105 of file sell.h.

gcn::Button* SellDialog::mIncreaseButton [private]

Definition at line 106 of file sell.h.

gcn::Button* SellDialog::mDecreaseButton [private]

Definition at line 107 of file sell.h.

Definition at line 108 of file sell.h.

gcn::ScrollArea* SellDialog::mScrollArea [private]

Definition at line 109 of file sell.h.

gcn::Label* SellDialog::mMoneyLabel [private]

Definition at line 110 of file sell.h.

gcn::Label* SellDialog::mItemDescLabel [private]

Definition at line 111 of file sell.h.

gcn::Label* SellDialog::mItemEffectLabel [private]

Definition at line 112 of file sell.h.

gcn::Label* SellDialog::mQuantityLabel [private]

Definition at line 113 of file sell.h.

gcn::Slider* SellDialog::mSlider [private]

Definition at line 114 of file sell.h.

Definition at line 116 of file sell.h.

int SellDialog::mPlayerMoney [private]

Definition at line 117 of file sell.h.

int SellDialog::mMaxItems [private]

Definition at line 119 of file sell.h.

int SellDialog::mAmountItems [private]

Definition at line 120 of file sell.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5