diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-12 08:11:35 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-12 08:12:31 -0600 |
commit | 657afb7b642d5b02289c6bb5bc883c2987cdf5d1 (patch) | |
tree | 26816e7e3f3acfd521844be85423a8b18d2443c5 /src/gui/popupmenu.cpp | |
parent | b4d5e2a9c92fe5b0f53c3d08b87c324960c3215c (diff) | |
download | Mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.gz Mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.bz2 Mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.tar.xz Mana-657afb7b642d5b02289c6bb5bc883c2987cdf5d1.zip |
Remove methods from LocalPlayer that just call Net
And make a few others like that, and remove them too.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 46a33d6c..2dcf2628 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -40,6 +40,8 @@ #include "net/adminhandler.h" #include "net/inventoryhandler.h" #include "net/net.h" +#include "net/partyhandler.h" +#include "net/tradehandler.h" #include "resources/itemdb.h" #include "resources/iteminfo.h" @@ -182,7 +184,7 @@ void PopupMenu::handleLink(const std::string &link) being && being->getType() == Being::PLAYER) { - player_node->trade(being); + Net::getTradeHandler()->request(being); tradePartnerName = being->getName(); } #ifdef EATHENA_SUPPORT @@ -261,13 +263,13 @@ void PopupMenu::handleLink(const std::string &link) if (mItem->isEquipment()) { if (mItem->isEquipped()) - player_node->unequipItem(mItem); + Net::getInventoryHandler()->unequipItem(mItem); else - player_node->equipItem(mItem); + Net::getInventoryHandler()->equipItem(mItem); } else { - player_node->useItem(mItem); + Net::getInventoryHandler()->useItem(mItem); } } @@ -302,7 +304,7 @@ void PopupMenu::handleLink(const std::string &link) else if (link == "party" && being && being->getType() == Being::PLAYER) { - player_node->inviteToParty(dynamic_cast<Player*>(being)); + Net::getPartyHandler()->invite(dynamic_cast<Player*>(being)); } else if (link == "name" && being) |