summary refs log tree commit diff stats
path: root/state.h
diff options
context:
space:
mode:
Diffstat (limited to 'state.h')
-rw-r--r--state.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/state.h b/state.h index 0d50ab3..845c544 100644 --- a/state.h +++ b/state.h
@@ -1,13 +1,13 @@
1#include <SDL.h>
2
3#ifndef STATE_H 1#ifndef STATE_H
4#define STATE_H 2#define STATE_H
5 3
4#include <memory>
5
6class Game;
7
6class State { 8class State {
7 public: 9 public:
8 virtual State* operator()(SDL_Window* window, SDL_Renderer* renderer) { 10 virtual std::unique_ptr<State> operator()(Game& game) { return {}; };
9 return NULL;
10 };
11}; 11};
12 12
13#endif \ No newline at end of file 13#endif