Commit | Line | Data |
---|---|---|
ad9f1fb6 PG |
1 | #include "Running.h" |
2 | #include "../entityManager.h" | |
3 | ||
4 | /// ***** Constructors/Destructors ***** | |
5 | Running::Running() | |
6 | { | |
d388f0ec | 7 | manager::init(); |
ad9f1fb6 PG |
8 | } |
9 | Running::~Running() | |
10 | { | |
d388f0ec | 11 | manager::clean(); |
ad9f1fb6 PG |
12 | } |
13 | ||
14 | /// ***** Public Class Methods ***** | |
15 | void Running::handleInput(bool on_top) const | |
16 | { | |
17 | if( on_top ) | |
18 | { | |
d388f0ec | 19 | manager::handleInput(); |
ad9f1fb6 PG |
20 | } |
21 | } | |
22 | void Running::update(float time_step, bool on_top) const | |
23 | { | |
24 | if( on_top ) | |
25 | { | |
d388f0ec | 26 | manager::update(time_step); |
ad9f1fb6 PG |
27 | } |
28 | } | |
29 | void Running::draw(bool on_top) const | |
30 | { | |
d388f0ec | 31 | manager::draw(); |
ad9f1fb6 | 32 | } |