diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-21 08:46:35 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2015-12-21 08:46:35 -0500 |
commit | 272a152b54a198a84f122ab8bedb1019708b7008 (patch) | |
tree | c47419145a1b03bc6b6a58ea2983a0819cb972e6 /include | |
parent | 0b9561febb7677de8792ba0feb056139ba7c94ea (diff) |
pages, quests
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 17 | ||||
-rw-r--r-- | include/world.h | 6 |
2 files changed, 23 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 08ec73f..038bf42 100644 --- a/include/common.h +++ b/include/common.h @@ -142,6 +142,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); |