diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2015-09-30 08:06:06 -0400 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2015-09-30 08:06:06 -0400 |
commit | 3994d87991496a140edbb7d67ddbebb9f82f3061 (patch) | |
tree | 3c70949b941839dce37bbd6c4d1338218f911bf1 /include/Quest.h | |
parent | b65f39e7f00624098e929da38bf6a87a20d073f1 (diff) |
Added quest files and file for names
Diffstat (limited to 'include/Quest.h')
-rw-r--r-- | include/Quest.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/Quest.h b/include/Quest.h new file mode 100644 index 0000000..c73bf79 --- /dev/null +++ b/include/Quest.h @@ -0,0 +1,29 @@ +#ifndef QUEST_H
+#define QUEST_H
+
+#include <common.h>
+#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);
+ ~Quest();
+};
+
+class QuestHandler {
+private:
+ unsigned char ccnt;
+ const Quest *current[QUEST_LIMIT];
+public:
+ QuestHandler();
+ int assign(const char *t);
+ int drop(const char *t);
+ int finish(const char *t);
+};
+
+#endif // QUEST_H
|