diff options
author | drumsetmonkey <abelleisle@roadrunner.com> | 2016-02-03 18:08:40 -0500 |
---|---|---|
committer | drumsetmonkey <abelleisle@roadrunner.com> | 2016-02-03 18:08:40 -0500 |
commit | b5598688432a0acd416be97ecf54576bbbf07eb6 (patch) | |
tree | a96522aa235b81e496ccf736720c69117b9199f1 /include/Quest.h | |
parent | 00c312051599729074ff3584a0528c1883e1ff42 (diff) | |
parent | 523ef5835f16ece38600b91f84936b7b0d2845a1 (diff) |
Mouse texture, and screenshots
Diffstat (limited to 'include/Quest.h')
-rw-r--r-- | include/Quest.h | 49 |
1 files changed, 8 insertions, 41 deletions
diff --git a/include/Quest.h b/include/Quest.h index d17ade4..cc01d27 100644 --- a/include/Quest.h +++ b/include/Quest.h @@ -20,46 +20,20 @@ #define DEBUG
-/**
- * The Quest class.
- *
- * This contains information for a single quest, and should only really be interacted
- * with through QuestHandler.
- */
+typedef struct {
+ std::string title;
+ std::string desc;
+ struct item_t reward;
+} Quest;
-class Quest {
+/*class Quest {
public:
-
- /**
- * Contains the title of the quest.
- */
-
char *title;
-
- /**
- * Contains the description of the quest.
- */
-
char *desc;
-
- /**
- * Contains the single item that's given as a reward upon quest completion.
- */
-
struct item_t reward;
-
- /**
- * Populates the values contained in this class.
- */
-
Quest(const char *t,const char *d,struct item_t r);
-
- /**
- * Frees memory allocated for the title and description text.
- */
-
~Quest();
-};
+};*/
/**
* The Quest Handler class.
@@ -70,12 +44,7 @@ public: class QuestHandler {
public:
-
- /**
- * A vector containing all quests currently being taken by the handler.
- */
-
- std::vector<const Quest *>current;
+ std::vector<Quest>current;
/**
* Adds a quest to the current quest vector by its title.
@@ -103,6 +72,4 @@ public: bool hasQuest(const char *t);
};
-#include <entities.h>
-
#endif // QUEST_H
|