summaryrefslogtreecommitdiff
path: root/src/playerinfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-19 23:22:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-19 23:22:41 +0300
commit50658d0b86e7fcd0ea92449310b1dbcc75237267 (patch)
tree888e3c812b869995d13bd33cc0591d94ccade2e9 /src/playerinfo.cpp
parentce234e915f6ee5557e6cc00b6aa9fd9b3bdbc152 (diff)
downloadmv-50658d0b86e7fcd0ea92449310b1dbcc75237267.tar.gz
mv-50658d0b86e7fcd0ea92449310b1dbcc75237267.tar.bz2
mv-50658d0b86e7fcd0ea92449310b1dbcc75237267.tar.xz
mv-50658d0b86e7fcd0ea92449310b1dbcc75237267.zip
Block moving in storage is open.
Move some code from being to playerinfo.
Diffstat (limited to 'src/playerinfo.cpp')
-rw-r--r--src/playerinfo.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/playerinfo.cpp b/src/playerinfo.cpp
index d00eb217d..61d72df3b 100644
--- a/src/playerinfo.cpp
+++ b/src/playerinfo.cpp
@@ -28,6 +28,10 @@
#include "listener.h"
#include "logger.h"
+#include "gui/inventorywindow.h"
+#include "gui/npcdialog.h"
+#include "gui/npcpostdialog.h"
+
#include "resources/itemdb.h"
#include "resources/iteminfo.h"
@@ -368,4 +372,10 @@ void deinit()
mListener = nullptr;
}
+bool isTalking()
+{
+ return NpcDialog::isActive() || NpcPostDialog::isActive()
+ || InventoryWindow::isStorageActive();
+}
+
} // namespace PlayerInfo