diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Quest.h | 13 | ||||
-rw-r--r-- | include/common.h | 1 | ||||
-rw-r--r-- | include/entities.h | 1 |
3 files changed, 7 insertions, 8 deletions
diff --git a/include/Quest.h b/include/Quest.h index c73bf79..076b800 100644 --- a/include/Quest.h +++ b/include/Quest.h @@ -1,26 +1,23 @@ #ifndef QUEST_H
#define QUEST_H
-#include <common.h>
+#include <vector>
+#include <cstdlib>
#include <cstring>
-#define QUEST_LIMIT 5
#define TOTAL_QUESTS 1
class Quest {
public:
char *title,*desc;
- unsigned int xp;
- Quest(const char *t,const char *d,unsigned int x);
+ unsigned int reward;
+ Quest(const char *t,const char *d,unsigned int r);
~Quest();
};
class QuestHandler {
-private:
- unsigned char ccnt;
- const Quest *current[QUEST_LIMIT];
public:
- QuestHandler();
+ std::vector<const Quest *>current;
int assign(const char *t);
int drop(const char *t);
int finish(const char *t);
diff --git a/include/common.h b/include/common.h index 8410f58..5dfbb78 100644 --- a/include/common.h +++ b/include/common.h @@ -20,6 +20,7 @@ enum _TYPE { //these are the main types of entities NPCT = 1 }; +#include <Quest.h> #include <entities.h> #define SCREEN_WIDTH 1280 diff --git a/include/entities.h b/include/entities.h index 9e0257f..aa7eff9 100644 --- a/include/entities.h +++ b/include/entities.h @@ -37,6 +37,7 @@ private: class Player : public Entity{ public: + QuestHandler qh; Player(); void interact(); }; |