From 78e67de6f70aab502a85578264b60493a818b39f Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 31 Mar 2009 21:52:04 -0600 Subject: Make network handler functions virtual --- src/net/playerhandler.h | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/net/playerhandler.h') diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h index df5e341e..87b51e2f 100644 --- a/src/net/playerhandler.h +++ b/src/net/playerhandler.h @@ -28,31 +28,31 @@ #include namespace Net { - class PlayerHandler - { - public: - void attack(Being *being); +class PlayerHandler +{ + public: + virtual void attack(Being *being) {} - void emote(int emoteId) {} + virtual void emote(int emoteId) {} - void increaseStat(int statId) {} + virtual void increaseStat(int statId) {} - void decreaseStat(int statId) {} + virtual void decreaseStat(int statId) {} - void pickUp(FloorItem *floorItem) {} + virtual void pickUp(FloorItem *floorItem) {} - void setDirection(int direction) {} + virtual void setDirection(int direction) {} - void setDestination(int x, int y, int direction = -1); + virtual void setDestination(int x, int y, int direction = -1); - void sit() {} + virtual void sit() {} - void respawn() {} + virtual void respawn() {} - void ingorePlayer(const std::string &player, bool ignore) {} + virtual void ingorePlayer(const std::string &player, bool ignore) {} - void ingoreAll(bool ignore) {} - }; + virtual void ingoreAll(bool ignore) {} +}; } #endif // PLAYERHANDLER_H -- cgit v1.2.3-70-g09d2