summaryrefslogtreecommitdiff
path: root/src/gui/windows/questswindow.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-26 19:22:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-26 19:22:28 +0300
commit020bb7c43135289a801f411f75c8c588e94ff31b (patch)
treed4d6f97d11351b00485711efa0bc57ef3f6d4378 /src/gui/windows/questswindow.h
parent52fdc7544c117b058fb1321a24795d64fe3d3887 (diff)
downloadmanaplus-020bb7c43135289a801f411f75c8c588e94ff31b.tar.gz
manaplus-020bb7c43135289a801f411f75c8c588e94ff31b.tar.bz2
manaplus-020bb7c43135289a801f411f75c8c588e94ff31b.tar.xz
manaplus-020bb7c43135289a801f411f75c8c588e94ff31b.zip
Add support for quest fields in quests window.
Quest attributes: {@@var1}, {@@var2}, {@@var3}, {@@time}
Diffstat (limited to 'src/gui/windows/questswindow.h')
-rw-r--r--src/gui/windows/questswindow.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/windows/questswindow.h b/src/gui/windows/questswindow.h
index 08ef852d9..78e5b609c 100644
--- a/src/gui/windows/questswindow.h
+++ b/src/gui/windows/questswindow.h
@@ -27,10 +27,12 @@
#include "gui/widgets/window.h"
+#include "listeners/actionlistener.h"
+
#include "utils/intmap.h"
#include "utils/xml.h"
-#include "listeners/actionlistener.h"
+#include "resources/questvar.h"
class Being;
class Button;
@@ -46,6 +48,8 @@ struct QuestItem;
typedef std::map<BeingTypeId, const QuestEffect*> NpcQuestEffectMap;
typedef NpcQuestEffectMap::const_iterator NpcQuestEffectMapCIter;
+typedef std::map<int, QuestVar> NpcQuestVarMap;
+typedef NpcQuestVarMap::const_iterator NpcQuestVarMapCIter;
class QuestsWindow final : public Window,
public ActionListener
@@ -63,7 +67,7 @@ class QuestsWindow final : public Window,
const int val1,
const int val2,
const int val3,
- const int time);
+ const int time1);
void rebuild(const bool playSound);
@@ -92,8 +96,8 @@ class QuestsWindow final : public Window,
Button *mCloseButton A_NONNULLPOINTER;
Image *mCompleteIcon;
Image *mIncompleteIcon;
- // quest variables: var, value
- IntMap mVars;
+ // quest variables: var, (val1, val2, val3, time)
+ NpcQuestVarMap mVars;
// quests: var, quests
std::map<int, std::vector<QuestItem*> > mQuests;
std::vector<QuestEffect*> mAllEffects;