From 125c9867da9cc58f0a250c7316f06755b1cc18ac Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 15 Mar 2021 23:40:04 +0000 Subject: Create GameState, the single global for the root of everything --- application/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'application') diff --git a/application/main.cpp b/application/main.cpp index f198517..df8828a 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -4,12 +4,12 @@ #include #include #include +#include #include #include #include #include #include -#include #include #include #include @@ -26,7 +26,7 @@ static const int DISPLAY_WIDTH = 1280; static const int DISPLAY_HEIGHT = 1024; -class SDL_Application : public InputHandler, public std::enable_shared_from_this { +class SDL_Application : public InputHandler, public std::enable_shared_from_this, GameState { public: SDL_Application() { @@ -160,7 +160,6 @@ private: bool isRunning {true}; Collection inputStack; - World world; }; int -- cgit v1.2.3