From 272a152b54a198a84f122ab8bedb1019708b7008 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 21 Dec 2015 08:46:35 -0500 Subject: pages, quests --- include/common.h | 17 +++++++++++++++++ include/world.h | 6 ++++++ 2 files changed, 23 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index 08ec73f..038bf42 100644 --- a/include/common.h +++ b/include/common.h @@ -141,6 +141,23 @@ extern vec2 offset; */ extern unsigned int loops; +/** + * This class contains a string for identification and a value. It can be used to + * save certain events for and decisions so that they can be recalled later. + */ + +class Condition { +private: + char *id; + void *value; +public: + Condition(const char *_id,void *val); + ~Condition(); + + bool sameID(const char *s); + void *getValue(void); +}; + /** * Prints a formatted debug message to the console, along with the callee's file and line * number. diff --git a/include/world.h b/include/world.h index 4b3a891..98ca54a 100644 --- a/include/world.h +++ b/include/world.h @@ -173,6 +173,12 @@ public: void addNPC(float x,float y); void addObject(ITEM_ID, bool, const char *, float, float); void addParticle(float, float, float, float, float, float, Color color, int); + + NPC *getAvailableNPC(void); + + /* + * Update coordinates of all entities. + */ void update(Player *p,unsigned int delta); -- cgit v1.2.3