aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2015-09-28 08:48:38 -0400
committerClyne Sullivan <tullivan99@gmail.com>2015-09-28 08:48:38 -0400
commit82727d2d50d6a71cd5e9d5a7c00fa41888a39eb7 (patch)
tree34334d941f7947e9933049e56c000a878f5371b3 /include
parent9630c8a49cbad7b1b71b9401ff24881ebf4c7c25 (diff)
improvements ;)
Diffstat (limited to 'include')
-rw-r--r--include/entities.h2
-rw-r--r--include/world.h5
2 files changed, 5 insertions, 2 deletions
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.
};
/*