From 523ef5835f16ece38600b91f84936b7b0d2845a1 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Wed, 3 Feb 2016 08:45:55 -0500 Subject: bug fixess --- include/Quest.h | 49 ++++++++----------------------------------------- 1 file changed, 8 insertions(+), 41 deletions(-) (limited to 'include/Quest.h') 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::vectorcurrent; + std::vectorcurrent; /** * Adds a quest to the current quest vector by its title. @@ -103,6 +72,4 @@ public: bool hasQuest(const char *t); }; -#include - #endif // QUEST_H -- cgit v1.2.3