diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-10 14:57:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-10 14:57:39 +0300 |
commit | 3efda43abd11979adfd048fc62fe4f09e702f772 (patch) | |
tree | 80f8d0f65bf7648ae78e12badc11f13b4481b87a /src/net/npchandler.h | |
parent | a0c7a0e2d34a13f2c3e86f662e352977ebe2ae73 (diff) | |
download | plus-3efda43abd11979adfd048fc62fe4f09e702f772.tar.gz plus-3efda43abd11979adfd048fc62fe4f09e702f772.tar.bz2 plus-3efda43abd11979adfd048fc62fe4f09e702f772.tar.xz plus-3efda43abd11979adfd048fc62fe4f09e702f772.zip |
improve npchandler class.
Diffstat (limited to 'src/net/npchandler.h')
-rw-r--r-- | src/net/npchandler.h | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/src/net/npchandler.h b/src/net/npchandler.h index c0fa49a9a..685e04c57 100644 --- a/src/net/npchandler.h +++ b/src/net/npchandler.h @@ -34,33 +34,37 @@ class NpcHandler virtual ~NpcHandler() { } - virtual void talk(int npcId) = 0; + virtual void talk(const int npcId) const = 0; - virtual void nextDialog(int npcId) = 0; + virtual void nextDialog(const int npcId) const = 0; - virtual void closeDialog(int npcId) = 0; + virtual void closeDialog(const int npcId) = 0; - virtual void listInput(int npcId, unsigned char value) = 0; + virtual void listInput(const int npcId, + const unsigned char value) const = 0; - virtual void integerInput(int npcId, int value) = 0; + virtual void integerInput(const int npcId, const int value) const = 0; - virtual void stringInput(int npcId, const std::string &value) = 0; + virtual void stringInput(const int npcId, + const std::string &value) const = 0; - virtual void sendLetter(int npcId, const std::string &recipient, - const std::string &text) = 0; + virtual void sendLetter(const int npcId, const std::string &recipient, + const std::string &text) const = 0; - virtual void startShopping(int beingId) = 0; + virtual void startShopping(const int beingId) const = 0; - virtual void buy(int beingId) = 0; + virtual void buy(const int beingId) const = 0; - virtual void sell(int beingId) = 0; + virtual void sell(const int beingId) const = 0; - virtual void buyItem(int beingId, int itemId, unsigned char color, - int amount) = 0; + virtual void buyItem(const int beingId, const int itemId, + const unsigned char color, + const int amount) const = 0; - virtual void sellItem(int beingId, int itemId, int amount) = 0; + virtual void sellItem(const int beingId, const int itemId, + const int amount) const = 0; - virtual void endShopping(int beingId) = 0; + virtual void endShopping(const int beingId) const = 0; virtual void clearDialogs() = 0; }; |