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) --- state.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'state.h') diff --git a/state.h b/state.h index 0d50ab3..845c544 100644 --- a/state.h +++ b/state.h @@ -1,13 +1,13 @@ -#include - #ifndef STATE_H #define STATE_H +#include + +class Game; + class State { public: - virtual State* operator()(SDL_Window* window, SDL_Renderer* renderer) { - return NULL; - }; + virtual std::unique_ptr operator()(Game& game) { return {}; }; }; -#endif \ No newline at end of file +#endif -- cgit 1.4.1