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/localplayer.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/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index b571c4b0..059ccd31 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -336,48 +336,6 @@ void LocalPlayer::setInvItem(int index, int id, int amount) #endif -void LocalPlayer::inviteToParty(const std::string &name) -{ - Net::getPartyHandler()->invite(name); -} - -void LocalPlayer::inviteToParty(Player *player) -{ - Net::getPartyHandler()->invite(player); -} - -void LocalPlayer::equipItem(Item *item) -{ - Net::getInventoryHandler()->equipItem(item); -} - -void LocalPlayer::unequipItem(Item *item) -{ - Net::getInventoryHandler()->unequipItem(item); - - // Tidy equipment directly to avoid weapon still shown bug, for instance -#ifdef TMWSERV_SUPPORT - mEquipment->setEquipment(item->getInvIndex(), 0); -#else - mEquipment->removeEquipment(item->getInvIndex()); -#endif -} - -void LocalPlayer::useItem(Item *item) -{ - Net::getInventoryHandler()->useItem(item); -} - -void LocalPlayer::dropItem(Item *item, int quantity) -{ - Net::getInventoryHandler()->dropItem(item, quantity); -} - -void LocalPlayer::splitItem(Item *item, int quantity) -{ - Net::getInventoryHandler()->splitItem(item, quantity); -} - void LocalPlayer::pickUp(FloorItem *item) { #ifdef TMWSERV_SUPPORT @@ -618,16 +576,6 @@ void LocalPlayer::stopWalking(bool sendToServer) } #endif -#ifdef EATHENA_SUPPORT -void LocalPlayer::raiseSkill(Uint16 skillId) -{ - if (mSkillPoint <= 0) - return; - - Net::getSkillHandler()->up(skillId); -} -#endif - void LocalPlayer::toggleSit() { if (mLastAction != -1) @@ -654,24 +602,6 @@ void LocalPlayer::emote(Uint8 emotion) Net::getPlayerHandler()->emote(emotion); } -void LocalPlayer::tradeReply(bool accept) -{ - if (!accept) - mTrading = false; - - Net::getTradeHandler()->respond(accept); -} - -void LocalPlayer::trade(Being *being) const -{ - Net::getTradeHandler()->request(being); -} - -bool LocalPlayer::tradeRequestOk() const -{ - return !mTrading; -} - #ifdef TMWSERV_SUPPORT void LocalPlayer::attack() @@ -801,11 +731,6 @@ void LocalPlayer::stopAttack() mLastTarget = -1; } -void LocalPlayer::revive() -{ - Net::getPlayerHandler()->respawn(); -} - #ifdef TMWSERV_SUPPORT void LocalPlayer::raiseAttribute(size_t attr) |