summaryrefslogtreecommitdiff
path: root/src/net/npchandler.h
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-31 21:52:04 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-31 21:52:04 -0600
commit78e67de6f70aab502a85578264b60493a818b39f (patch)
tree33e99673a23bd5d08ba116c3f8756cffc5f6779f /src/net/npchandler.h
parent37432edac65a6b85c7a3414a421f2afd3e67a14e (diff)
downloadmana-client-78e67de6f70aab502a85578264b60493a818b39f.tar.gz
mana-client-78e67de6f70aab502a85578264b60493a818b39f.tar.bz2
mana-client-78e67de6f70aab502a85578264b60493a818b39f.tar.xz
mana-client-78e67de6f70aab502a85578264b60493a818b39f.zip
Make network handler functions virtual
Diffstat (limited to 'src/net/npchandler.h')
-rw-r--r--src/net/npchandler.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/net/npchandler.h b/src/net/npchandler.h
index 9ff02f28..18e52b48 100644
--- a/src/net/npchandler.h
+++ b/src/net/npchandler.h
@@ -25,36 +25,36 @@
#include <iosfwd>
namespace Net {
- class NpcHandler
- {
- public:
- void talk(int npcId);
+class NpcHandler
+{
+ public:
+ virtual void talk(int npcId) {}
- void nextDialog(int npcId);
+ virtual void nextDialog(int npcId) {}
- void closeDialog(int npcId);
+ virtual void closeDialog(int npcId) {}
- void listInput(int npcId, int value) {}
+ virtual void listInput(int npcId, int value) {}
- void integerInput(int npcId, int value){}
+ virtual void integerInput(int npcId, int value){}
- void stringInput(int npcId, const std::string &value) {}
+ virtual void stringInput(int npcId, const std::string &value) {}
- void sendLetter(int npcId, const std::string &recipient,
- const std::string &text) {}
+ virtual void sendLetter(int npcId, const std::string &recipient,
+ const std::string &text) {}
- void startShoping(int beingId) {}
+ virtual void startShoping(int beingId) {}
- void buy(int beingId) {}
+ virtual void buy(int beingId) {}
- void sell(int beingId) {}
+ virtual void sell(int beingId) {}
- void buyItem(int beingId, int itemId, int ammount) {}
+ virtual void buyItem(int beingId, int itemId, int ammount) {}
- void sellItem(int beingId, int itemId, int ammount) {}
+ virtual void sellItem(int beingId, int itemId, int ammount) {}
- void endShoping(int beingId) {}
- };
+ virtual void endShoping(int beingId) {}
+};
}
#endif // NPCHANDLER_H