Army ant simulation
Classes | Enumerations
Terrain.h File Reference

Implementation of the Terrain class. More...

#include "Box2D/Box2D.h"
#include "SFML/Graphics.hpp"
#include "SFML/Window.hpp"
#include "Config.h"
Include dependency graph for Terrain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Terrain
 

Enumerations

enum  e_terrain_type {
  DEFAULT, V_TERRAIN, V2BL_TERRAIN, RAMP,
  BOX, V_STEPPER
}
 

Detailed Description

Implementation of the Terrain class.

General class for the Terrain creation including method for the Box2D implementation (Physics) and the SFMLF synchronization (graphics). The default terrain is linear ground of width 3*m_runaway located at m_posY from the top of the window. The m_width, m_height and m_angle members do not represent actual dimension in the case of the default terrain.

Date
28 sept. 2018
Author
lucie houel

Definition in file Terrain.h.

Enumeration Type Documentation

◆ e_terrain_type

Different types of terrain used to do the simulation

Definition at line 23 of file Terrain.h.