From 82727d2d50d6a71cd5e9d5a7c00fa41888a39eb7 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 28 Sep 2015 08:48:38 -0400 Subject: improvements ;) --- include/entities.h | 2 +- include/world.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/entities.h b/include/entities.h index 78d9a51..101fc7a 100644 --- a/include/entities.h +++ b/include/entities.h @@ -39,7 +39,7 @@ public: }; class Structures : public Entity{ public: - World *inside; + void *inside; Structures(); unsigned int spawn(int, float, float); }; diff --git a/include/world.h b/include/world.h index 0e8dced..50f2483 100644 --- a/include/world.h +++ b/include/world.h @@ -62,7 +62,10 @@ public: // world is drawn the world has to appear directly behind the player) World *goWorldFront(Player *p); // Functions the same as goWorldBack(), but checks/returns the world in front of // this one. - void addPlatform(float x,float y,float w,float h); + World *goInsideStructure(Player *p); // Returns the world contained in a structure if the player is requesting to enter + // it and is standing in front of it. + void addPlatform(float x,float y,float w,float h); // Dynamically adds a platform to the platform array. These will be automatically + // drawn and handled by the world. }; /* -- cgit v1.2.3