diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-01 01:13:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-01 01:13:14 +0300 |
commit | 24902ba328260cb496c62e236a644ebb990e3fd4 (patch) | |
tree | fd9ee8f2759566f29076eb63689802b40fe13756 /src/net/npchandler.h | |
parent | 2c273a20b2cd3e1628840f2d87df16f0cce9ad33 (diff) | |
download | manaverse-24902ba328260cb496c62e236a644ebb990e3fd4.tar.gz manaverse-24902ba328260cb496c62e236a644ebb990e3fd4.tar.bz2 manaverse-24902ba328260cb496c62e236a644ebb990e3fd4.tar.xz manaverse-24902ba328260cb496c62e236a644ebb990e3fd4.zip |
Store interacted npc type before buy or talk and send it to buy dialog.
Diffstat (limited to 'src/net/npchandler.h')
-rw-r--r-- | src/net/npchandler.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/npchandler.h b/src/net/npchandler.h index 5ef65d1f6..040b191a9 100644 --- a/src/net/npchandler.h +++ b/src/net/npchandler.h @@ -36,6 +36,7 @@ #include "localconsts.h" +class Being; class NpcDialog; class ShopItem; @@ -58,7 +59,7 @@ class NpcHandler notfinal virtual BeingId getNpc(Net::MessageIn &msg, const NpcActionT action) = 0; - virtual void talk(const BeingId npcId) const = 0; + virtual void talk(const Being *const being) const = 0; virtual void nextDialog(const BeingId npcId) const = 0; @@ -73,7 +74,7 @@ class NpcHandler notfinal virtual void stringInput(const BeingId npcId, const std::string &value) const = 0; - virtual void buy(const BeingId beingId) const = 0; + virtual void buy(const Being *const being) const = 0; virtual void sell(const BeingId beingId) const = 0; |