From 3994d87991496a140edbb7d67ddbebb9f82f3061 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Wed, 30 Sep 2015 08:06:06 -0400 Subject: Added quest files and file for names --- include/Quest.h | 29 +++++++++++++++++++++++++++++ include/common.h | 3 ++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 include/Quest.h (limited to 'include') 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 +#include + +#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 diff --git a/include/common.h b/include/common.h index 0c35604..8410f58 100644 --- a/include/common.h +++ b/include/common.h @@ -11,7 +11,8 @@ #include #include -typedef struct { float x; float y; } vec2; +typedef struct { float x; float y; }vec2; +typedef struct { char* first; char* last; }_name; enum _TYPE { //these are the main types of entities STRUCTURET = -1, -- cgit v1.2.3