|
GEJM
1.0.0.0
a 2D platformer made by students
|
#include <Physics.h>
Public Member Functions | |
| Physics (int boundaryWidth, int boundaryHeight) | |
| Physics (Physics const &)=delete | |
| ~Physics () | |
| double | update (std::list< Object * > &objectList) |
| Physics & | operator= (Physics const &)=delete |
Physics is a class that is responsible for simulating physics.
| Physics::Physics | ( | int | boundaryWidth, |
| int | boundaryHeight | ||
| ) |
Default constructor of Physics. Sets currentTime, t, dt, accumulator and boundaries of physical simulation.
| boundaryWidth | width of bounding box in which physical simulation is simulated |
| boundaryHeight | height of bounding box in which physical simulation is simulated |
Physics implementation Default constructor of Physics. Sets currentTime, t, dt, accumulator and boundaries of physical simulation.
| boundaryWidth | width of bounding box in which physical simulation is simulated |
| boundaryHeight | height of bounding box in which physical simulation is simulated |
|
delete |
Copy constructor is deleted because it shouldn't be ever used.
| Physics::~Physics | ( | ) |
Default destructor.
Assigment operator is overloaded because it cannot be generated by compiler but because it shouldn't be used it's deleted.
| double Physics::update | ( | std::list< Object * > & | objectList | ) |
Calculate next steps of simulation.
| objectList | reference to a list of all game objects |
1.8.11