#include <storagewindow.h>

Definition at line 42 of file storagewindow.h.
Public Member Functions | |
| StorageWindow (int invSize=(STORAGE_SIZE-1)) | |
| Constructor. | |
| ~StorageWindow () | |
| 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) |
| void | addStore (Item *item, int amount) |
| Add the specified ammount of the specified item to storage. | |
| void | removeStore (Item *item, int amount) |
| Remove the specified ammount of the specified item from storage. | |
| void | close () |
| Closes the Storage Window, as well as telling the server that the window has been closed. | |
Private Attributes | |
| ItemContainer * | mItems |
| int | mSlots |
| int | mUsedSlots |
| gcn::Button * | mStoreButton |
| gcn::Button * | mRetrieveButton |
| gcn::Label * | mSlotsLabel |
| ProgressBar * | mSlotsBar |
| int | mMaxSlots |
| bool | mItemDesc |
| StorageWindow::StorageWindow | ( | int | invSize = (STORAGE_SIZE - 1) |
) |
| StorageWindow::~StorageWindow | ( | ) |
| void StorageWindow::logic | ( | ) |
| void StorageWindow::action | ( | const gcn::ActionEvent & | event | ) |
| Item * StorageWindow::getSelectedItem | ( | ) | const |
| void StorageWindow::mouseClicked | ( | gcn::MouseEvent & | event | ) |
Definition at line 159 of file storagewindow.cpp.
| void StorageWindow::addStore | ( | Item * | item, | |
| int | amount | |||
| ) |
Add the specified ammount of the specified item to storage.
Definition at line 189 of file storagewindow.cpp.
| void StorageWindow::removeStore | ( | Item * | item, | |
| int | amount | |||
| ) |
Remove the specified ammount of the specified item from storage.
Definition at line 196 of file storagewindow.cpp.
| void StorageWindow::close | ( | ) | [virtual] |
Closes the Storage Window, as well as telling the server that the window has been closed.
Reimplemented from Window.
Definition at line 203 of file storagewindow.cpp.
ItemContainer* StorageWindow::mItems [private] |
Definition at line 90 of file storagewindow.h.
int StorageWindow::mSlots [private] |
Definition at line 92 of file storagewindow.h.
int StorageWindow::mUsedSlots [private] |
Definition at line 93 of file storagewindow.h.
gcn::Button* StorageWindow::mStoreButton [private] |
Definition at line 94 of file storagewindow.h.
gcn::Button * StorageWindow::mRetrieveButton [private] |
Definition at line 94 of file storagewindow.h.
gcn::Label* StorageWindow::mSlotsLabel [private] |
Definition at line 96 of file storagewindow.h.
ProgressBar* StorageWindow::mSlotsBar [private] |
Definition at line 98 of file storagewindow.h.
int StorageWindow::mMaxSlots [private] |
Definition at line 100 of file storagewindow.h.
bool StorageWindow::mItemDesc [private] |
Definition at line 102 of file storagewindow.h.
1.5.5