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