diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-04-04 14:54:21 -0400 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-04-04 14:54:21 -0400 |
commit | a7bbe5cc18fe5b24f5d97d4acce164998d8d5517 (patch) | |
tree | 8ef8f0ce2303bbd0aef68c66e7687ec3ca216d30 /include/world.hpp | |
parent | c74d256646cf0c438feee2ac703cc1f34b47b8ec (diff) |
physics, removed extra couts
Diffstat (limited to 'include/world.hpp')
-rw-r--r-- | include/world.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/world.hpp b/include/world.hpp index d086687..40e4a38 100644 --- a/include/world.hpp +++ b/include/world.hpp @@ -17,12 +17,16 @@ #define GROUND_HILLINESS 10 +#define PLAYER_SPEED_CONSTANT 0.15f + /** * Defines how many game ticks it takes for a day to elapse. */ #define DAY_CYCLE 12000 +#define Indoorp(x) ((IndoorWorld *)x) + /** * The background type enum. * This enum contains all different possibilities for world backgrounds; used @@ -485,6 +489,7 @@ class IndoorWorld : public World { private: std::vector<std::vector<float>> floor; + std::vector<float> fstart; void singleDetect( Entity *e ); @@ -493,6 +498,11 @@ public: ~IndoorWorld(void); void addFloor( unsigned int width ); + void addFloor( unsigned int width, unsigned int start ); + bool moveToFloor( Entity *e, unsigned int _floor ); + + bool isFloorAbove( Entity *e ); + bool isFloorBelow( Entity *e ); void draw(Player *p); // Draws the world (ignores layers) }; @@ -537,6 +547,9 @@ public: World *exitArena( Player *p ); }; +bool isCurrentWorldIndoors( void ); +float getIndoorWorldFloorHeight( void ); + std::string getWorldWeatherStr( WorldWeather ww ); /** |