diff options
Diffstat (limited to 'src/state.h')
| -rw-r--r-- | src/state.h | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/src/state.h b/src/state.h new file mode 100644 index 0000000..3c3cfb4 --- /dev/null +++ b/src/state.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #ifndef STATE_H_86BFEF59 | ||
| 2 | #define STATE_H_86BFEF59 | ||
| 3 | |||
| 4 | #include "renderer.h" | ||
| 5 | |||
| 6 | class State { | ||
| 7 | public: | ||
| 8 | |||
| 9 | virtual ~State() = default; | ||
| 10 | |||
| 11 | virtual void tick( | ||
| 12 | double dt, | ||
| 13 | const Uint8* keystate) = 0; | ||
| 14 | |||
| 15 | virtual void render(SDL_Renderer* ren) = 0; | ||
| 16 | |||
| 17 | }; | ||
| 18 | |||
| 19 | #endif /* end of include guard: STATE_H_86BFEF59 */ | ||
