14 #include "Box2D/Box2D.h" 15 #include "SFML/Graphics.hpp" 16 #include "SFML/Window.hpp" 23 enum e_terrain_type {DEFAULT, V_TERRAIN, V2BL_TERRAIN, RAMP, BOX, V_STEPPER};
28 Terrain(b2World* world, sf::RenderWindow& window,
config::sTerrain terrainParam,
int WINDOW_X_PX,
double bodyLength=1);
40 virtual void create(b2World* world, sf::RenderWindow& window,
config::sTerrain terrainParam,
int WINDOW_X_PX,
double bodyLength);
52 virtual void drawBody(sf::RenderWindow& window);
virtual e_terrain_type getType()
virtual b2Vec2 getTopRightCorner()
virtual void drawBody(sf::RenderWindow &window)
virtual void createBody(b2World *world)
virtual b2Vec2 getBottom()
virtual b2Vec2 getTopLeftCorner()
Implementation of the Configuration class used to parse the configuration file and the sConfig struct...
virtual void create(b2World *world, sf::RenderWindow &window, config::sTerrain terrainParam, int WINDOW_X_PX, double bodyLength)