diff options
Diffstat (limited to 'src/net/npchandler.h')
-rw-r--r-- | src/net/npchandler.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/net/npchandler.h b/src/net/npchandler.h index bba8dc31..35535c61 100644 --- a/src/net/npchandler.h +++ b/src/net/npchandler.h @@ -29,13 +29,27 @@ namespace Net { class NpcHandler { public: + virtual ~NpcHandler() {} + + virtual void startShopping(int beingId) = 0; + + virtual void buy(int beingId) = 0; + + virtual void sell(int beingId) = 0; + + virtual void buyItem(int beingId, int itemId, int amount) = 0; + + virtual void sellItem(int beingId, int itemId, int amount) = 0; + + virtual void endShopping(int beingId) = 0; + virtual void talk(int npcId) = 0; virtual void nextDialog(int npcId) = 0; virtual void closeDialog(int npcId) = 0; - virtual void listInput(int npcId, int value) = 0; + virtual void menuSelect(int npcId, int choice) = 0; virtual void integerInput(int npcId, int value) = 0; @@ -44,19 +58,6 @@ class NpcHandler virtual void sendLetter(int npcId, const std::string &recipient, const std::string &text) = 0; - virtual void startShopping(int beingId) = 0; - - virtual void buy(int beingId) = 0; - - virtual void sell(int beingId) = 0; - - virtual void buyItem(int beingId, int itemId, int amount) = 0; - - virtual void sellItem(int beingId, int itemId, int amount) = 0; - - virtual void endShopping(int beingId) = 0; - - virtual ~NpcHandler() {} }; } // namespace Net |