From a59fcafb2e81f3cb40ff320b106030e8fed4bd66 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 2 Nov 2023 18:38:53 -0400 Subject: Modernized C++ a bit (and removed global highscores) --- gamestate.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'gamestate.h') diff --git a/gamestate.h b/gamestate.h index 32e5d07..9b0b52c 100644 --- a/gamestate.h +++ b/gamestate.h @@ -1,13 +1,14 @@ -#include - -#include "state.h" - #ifndef GAMESTATE_H #define GAMESTATE_H +#include + +#include "mazeoflife.h" +#include "state.h" + class GameState : public State { public: - State* operator()(SDL_Window* window, SDL_Renderer* renderer); + std::unique_ptr operator()(Game& game); }; -#endif \ No newline at end of file +#endif -- cgit 1.4.1