diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-08 21:24:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-08 21:24:02 +0300 |
commit | 52865ff4b24e3ea85967e76099b73f2e581a856d (patch) | |
tree | 9b3a26f33d7ea69479fe8dcdf1b84de7176edc79 /src/net | |
parent | 5d0b4c09a67f279847337aa06bc3066c07f63114 (diff) | |
download | plus-52865ff4b24e3ea85967e76099b73f2e581a856d.tar.gz plus-52865ff4b24e3ea85967e76099b73f2e581a856d.tar.bz2 plus-52865ff4b24e3ea85967e76099b73f2e581a856d.tar.xz plus-52865ff4b24e3ea85967e76099b73f2e581a856d.zip |
Add function for return current npc dialog.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/npchandler.cpp | 5 | ||||
-rw-r--r-- | src/net/ea/npchandler.h | 2 | ||||
-rw-r--r-- | src/net/npchandler.h | 3 |
3 files changed, 10 insertions, 0 deletions
diff --git a/src/net/ea/npchandler.cpp b/src/net/ea/npchandler.cpp index fa6b0de2c..46c20c464 100644 --- a/src/net/ea/npchandler.cpp +++ b/src/net/ea/npchandler.cpp @@ -35,4 +35,9 @@ NpcHandler::NpcHandler() NpcRecv::mRequestLang = false; } +NpcDialog *NpcHandler::getCurrentNpcDialog() const +{ + return NpcRecv::mDialog; +} + } // namespace Ea diff --git a/src/net/ea/npchandler.h b/src/net/ea/npchandler.h index 92d1a0b12..916f77556 100644 --- a/src/net/ea/npchandler.h +++ b/src/net/ea/npchandler.h @@ -35,6 +35,8 @@ class NpcHandler notfinal : public Net::NpcHandler public: A_DELETE_COPY(NpcHandler) + NpcDialog *getCurrentNpcDialog() const override final; + protected: NpcHandler(); }; diff --git a/src/net/npchandler.h b/src/net/npchandler.h index a47e25963..529765bb0 100644 --- a/src/net/npchandler.h +++ b/src/net/npchandler.h @@ -36,6 +36,7 @@ #include "localconsts.h" +class NpcDialog; class ShopItem; namespace Net @@ -105,6 +106,8 @@ class NpcHandler notfinal virtual void selectArrow(const int nameId) const = 0; virtual void selectAutoSpell(const int skillId) const = 0; + + virtual NpcDialog *getCurrentNpcDialog() const = 0; }; } // namespace Net |