From 21ce3f06312a02c23d6b3c89f64f84222f54fe6d Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 26 Nov 2016 12:39:22 -0500 Subject: optimizing work --- include/engine.hpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'include') 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>(); class Engine : public entityx::Receiver { -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); } }; -- cgit v1.2.3