now draws a ball, fixed top of states bug
[physics.git] / src / GameStates / Running.cpp
CommitLineData
ad9f1fb6 1#include "Running.h"
a483ed75 2
ad9f1fb6
PG
3#include "../entityManager.h"
4
5/// ***** Constructors/Destructors *****
6Running::Running()
7{
d388f0ec 8 manager::init();
ad9f1fb6
PG
9}
10Running::~Running()
11{
d388f0ec 12 manager::clean();
ad9f1fb6
PG
13}
14
15/// ***** Public Class Methods *****
16void Running::handleInput(bool on_top) const
17{
18 if( on_top )
19 {
d388f0ec 20 manager::handleInput();
ad9f1fb6
PG
21 }
22}
23void Running::update(float time_step, bool on_top) const
24{
25 if( on_top )
26 {
d388f0ec 27 manager::update(time_step);
ad9f1fb6
PG
28 }
29}
30void Running::draw(bool on_top) const
31{
d388f0ec 32 manager::draw();
ad9f1fb6 33}