diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-11-26 12:39:22 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-11-26 12:39:22 -0500 |
commit | 21ce3f06312a02c23d6b3c89f64f84222f54fe6d (patch) | |
tree | 391236913182369a0331da03002ce8bb7b567f51 /include | |
parent | 109f28d7fe4626dcb0bff3ee8410b0c1d26d869c (diff) |
optimizing work
Diffstat (limited to 'include')
-rw-r--r-- | include/engine.hpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/engine.hpp b/include/engine.hpp index d4b1e34..c842b59 100644 --- a/include/engine.hpp +++ b/include/engine.hpp @@ -11,10 +11,9 @@ //game::engine::Systems->add<entityx::deps::Dependency<Visible, Sprite>>(); class Engine : public entityx::Receiver<Engine> { -private: - bool gameRunning; - public: + bool shouldRun; + entityx::SystemManager systems; explicit Engine(void); @@ -33,11 +32,7 @@ public: }*/ inline void receive(const GameEndEvent &gee) { - gameRunning = !(gee.really); - } - - inline bool shouldRun(void) const { - return gameRunning; + shouldRun = !(gee.really); } }; |