diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 21:52:04 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 21:52:04 -0600 |
commit | 78e67de6f70aab502a85578264b60493a818b39f (patch) | |
tree | 33e99673a23bd5d08ba116c3f8756cffc5f6779f /src/net/playerhandler.h | |
parent | 37432edac65a6b85c7a3414a421f2afd3e67a14e (diff) | |
download | mana-78e67de6f70aab502a85578264b60493a818b39f.tar.gz mana-78e67de6f70aab502a85578264b60493a818b39f.tar.bz2 mana-78e67de6f70aab502a85578264b60493a818b39f.tar.xz mana-78e67de6f70aab502a85578264b60493a818b39f.zip |
Make network handler functions virtual
Diffstat (limited to 'src/net/playerhandler.h')
-rw-r--r-- | src/net/playerhandler.h | 30 |
1 files changed, 15 insertions, 15 deletions
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 <iosfwd> 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 |