summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-02 14:54:43 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-02 15:02:59 +0200
commitd20b79683997990a1b46ac8d4117f9195aa278f2 (patch)
tree8566fe6cd224003100be35743645c948536f26e8 /src/net/ea/playerhandler.h
parent128f908908b77b242b749b27879ba2a9f70a94f6 (diff)
downloadmana-client-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.gz
mana-client-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.bz2
mana-client-d20b79683997990a1b46ac8d4117f9195aa278f2.tar.xz
mana-client-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/net/ea/playerhandler.h')
-rw-r--r--src/net/ea/playerhandler.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/net/ea/playerhandler.h b/src/net/ea/playerhandler.h
index f1d45a79..cc84dec0 100644
--- a/src/net/ea/playerhandler.h
+++ b/src/net/ea/playerhandler.h
@@ -24,35 +24,36 @@
#include "net/messagehandler.h"
#include "net/net.h"
+#include "net/playerhandler.h"
class PlayerHandler : public MessageHandler, public Net::PlayerHandler
{
public:
PlayerHandler();
- virtual void handleMessage(MessageIn &msg);
+ void handleMessage(MessageIn &msg);
- virtual void attack(Being *being);
+ void attack(Being *being);
- virtual void emote(int emoteId);
+ void emote(int emoteId);
- virtual void increaseStat(LocalPlayer::Attribute attr);
+ void increaseStat(LocalPlayer::Attribute attr);
- virtual void decreaseStat(LocalPlayer::Attribute attr);
+ void decreaseStat(LocalPlayer::Attribute attr);
- virtual void pickUp(FloorItem *floorItem);
+ void pickUp(FloorItem *floorItem);
- virtual void setDirection(int direction);
+ void setDirection(int direction);
- virtual void setDestination(int x, int y, int direction = -1);
+ void setDestination(int x, int y, int direction = -1);
- virtual void changeAction(Being::Action action);
+ void changeAction(Being::Action action);
- virtual void respawn();
+ void respawn();
- virtual void ingorePlayer(const std::string &player, bool ignore);
+ void ingorePlayer(const std::string &player, bool ignore);
- virtual void ingoreAll(bool ignore);
+ void ingoreAll(bool ignore);
};
extern PlayerHandler *playerHandler;