From 657afb7b642d5b02289c6bb5bc883c2987cdf5d1 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 12 May 2009 08:11:35 -0600 Subject: Remove methods from LocalPlayer that just call Net And make a few others like that, and remove them too. --- src/localplayer.h | 42 ++---------------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index acf2ee63..52e2b74b 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -187,32 +187,6 @@ class LocalPlayer : public Player void setInvItem(int index, int id, int amount); #endif - /** - * Invite a player to join their party - */ - void inviteToParty(const std::string &name); - - /** - * Invite a player to join their party - */ - void inviteToParty(Player *player); - - /** - * Equips an item. - */ - void equipItem(Item *item); - - /** - * Unequips an item. - */ - void unequipItem(Item *item); - - void useItem(Item *item); - - void dropItem(Item *item, int quantity); - - void splitItem(Item *item, int quantity); - void pickUp(FloorItem *item); #ifdef EATHENA_SUPPORT @@ -227,21 +201,11 @@ class LocalPlayer : public Player */ int getAttackRange(); - /** - * Sents a trade request to the given being. - */ - void trade(Being *being) const; - - /** - * Accept or decline a trade offer - */ - void tradeReply(bool accept); - /** * Returns true when the player is ready to accept a trade offer. * Returns false otherwise. */ - bool tradeRequestOk() const; + bool tradeRequestOk() const { return !mTrading; } /** * Sets the trading state of the player, i.e. whether or not he is @@ -317,7 +281,7 @@ class LocalPlayer : public Player bool withinAttackRange(Being *target); #ifdef EATHENA_SUPPORT - void raiseSkill(Uint16 skillId); + //void raiseSkill(Uint16 skillId); #else /** @@ -339,8 +303,6 @@ class LocalPlayer : public Player void toggleSit(); void emote(Uint8 emotion); - void revive(); - /** * Shows item pickup effect if the player is on a map. */ -- cgit v1.2.3-70-g09d2