diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 14:54:43 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-02 15:02:59 +0200 |
commit | d20b79683997990a1b46ac8d4117f9195aa278f2 (patch) | |
tree | 8566fe6cd224003100be35743645c948536f26e8 /src/gui | |
parent | 128f908908b77b242b749b27879ba2a9f70a94f6 (diff) | |
download | mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.gz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.bz2 mana-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.xz mana-d20b79683997990a1b46ac8d4117f9195aa278f2.zip |
Some cleanup and renaming
* Removed superfluous 'virtual' keyword in *Handler implementations
* Renamed NPCHandler to NpcHandler
* Renamed InvyHandler to InventoryHandler
* Made all *Handler interface methods pure virtual
* Used forward declarations in net.h
* Renamed {start,end}Shoping to {start,end}Shopping
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/storagewindow.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/gui/storagewindow.cpp b/src/gui/storagewindow.cpp index 59b6de7a..2828b197 100644 --- a/src/gui/storagewindow.cpp +++ b/src/gui/storagewindow.cpp @@ -180,29 +180,29 @@ void StorageWindow::mouseClicked(gcn::MouseEvent &event) } } -Item* StorageWindow::getSelectedItem() const +Item *StorageWindow::getSelectedItem() const { return mItems->getSelectedItem(); } void StorageWindow::addStore(Item *item, int amount) { - // Net::getInvyHandler()->moveItem(Net::InvyHandler::INVENTORY, - invyHandler->moveItem(Net::InvyHandler::INVENTORY, - item->getInvIndex(), amount, - Net::InvyHandler::STORAGE); + // Net::getInventoryHandler()->moveItem(Net::InvyHandler::INVENTORY, + inventoryHandler->moveItem(Net::InventoryHandler::INVENTORY, + item->getInvIndex(), amount, + Net::InventoryHandler::STORAGE); } void StorageWindow::removeStore(Item *item, int amount) { - // Net::getInvyHandler()->moveItem(Net::InvyHandler::STORAGE, - invyHandler->moveItem(Net::InvyHandler::STORAGE, - item->getInvIndex(), amount, - Net::InvyHandler::INVENTORY); + // Net::getInventoryHandler()->moveItem(Net::InvyHandler::STORAGE, + inventoryHandler->moveItem(Net::InventoryHandler::STORAGE, + item->getInvIndex(), amount, + Net::InventoryHandler::INVENTORY); } void StorageWindow::close() { - // Net::getInvyHandler()->closeStorage(); - invyHandler->closeStorage(); + // Net::getInventoryHandler()->closeStorage(); + inventoryHandler->closeStorage(); } |