#include <inventorywindow.h>

Definition at line 43 of file inventorywindow.h.
Public Member Functions | |
| InventoryWindow (int invSize=(INVENTORY_SIZE-2)) | |
| Constructor. | |
| ~InventoryWindow () | |
| Destructor. | |
| void | logic () |
| Logic (updates buttons and weight information). | |
| void | action (const gcn::ActionEvent &event) |
| Called when receiving actions from the widgets. | |
| Item * | getSelectedItem () const |
| Returns the selected item. | |
| void | mouseClicked (gcn::MouseEvent &event) |
| Handles the mouse clicks. | |
| void | valueChanged (const gcn::SelectionEvent &event) |
| Updates labels to currently selected item. | |
Private Member Functions | |
| void | updateButtons () |
| Updates button states. | |
Private Attributes | |
| ItemContainer * | mItems |
| std::string | mWeight |
| std::string | mSlots |
| int | mUsedSlots |
| int | mTotalWeight |
| int | mMaxWeight |
| gcn::Button * | mUseButton |
| gcn::Button * | mDropButton |
| gcn::Label * | mWeightLabel |
| gcn::Label * | mSlotsLabel |
| ProgressBar * | mWeightBar |
| ProgressBar * | mSlotsBar |
| int | mMaxSlots |
| bool | mSplit |
| bool | mItemDesc |
| InventoryWindow::InventoryWindow | ( | int | invSize = (INVENTORY_SIZE - 2) |
) |
| InventoryWindow::~InventoryWindow | ( | ) |
| void InventoryWindow::logic | ( | ) |
| void InventoryWindow::action | ( | const gcn::ActionEvent & | event | ) |
| Item * InventoryWindow::getSelectedItem | ( | ) | const |
| void InventoryWindow::mouseClicked | ( | gcn::MouseEvent & | event | ) |
| void InventoryWindow::valueChanged | ( | const gcn::SelectionEvent & | event | ) |
| void InventoryWindow::updateButtons | ( | ) | [private] |
ItemContainer* InventoryWindow::mItems [private] |
Definition at line 103 of file inventorywindow.h.
std::string InventoryWindow::mWeight [private] |
Definition at line 105 of file inventorywindow.h.
std::string InventoryWindow::mSlots [private] |
Definition at line 106 of file inventorywindow.h.
int InventoryWindow::mUsedSlots [private] |
Definition at line 107 of file inventorywindow.h.
int InventoryWindow::mTotalWeight [private] |
Definition at line 108 of file inventorywindow.h.
int InventoryWindow::mMaxWeight [private] |
Definition at line 109 of file inventorywindow.h.
gcn::Button* InventoryWindow::mUseButton [private] |
Definition at line 110 of file inventorywindow.h.
gcn::Button* InventoryWindow::mDropButton [private] |
Definition at line 111 of file inventorywindow.h.
gcn::Label* InventoryWindow::mWeightLabel [private] |
Definition at line 115 of file inventorywindow.h.
gcn::Label* InventoryWindow::mSlotsLabel [private] |
Definition at line 116 of file inventorywindow.h.
ProgressBar* InventoryWindow::mWeightBar [private] |
Definition at line 118 of file inventorywindow.h.
ProgressBar* InventoryWindow::mSlotsBar [private] |
Definition at line 119 of file inventorywindow.h.
int InventoryWindow::mMaxSlots [private] |
Definition at line 121 of file inventorywindow.h.
bool InventoryWindow::mSplit [private] |
Definition at line 123 of file inventorywindow.h.
bool InventoryWindow::mItemDesc [private] |
Definition at line 124 of file inventorywindow.h.
1.5.5