diff options
author | Starla Insigna <starla4444@gmail.com> | 2013-08-27 11:39:37 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2013-08-27 11:39:37 -0400 |
commit | ffd335aca284c286030e2b26f1a02a0441748f46 (patch) | |
tree | bcc1c241621fe159ae7ef178122fb41c5f23eb00 /state.h | |
parent | d47da18958b5214def5127e201f60668c566d9bb (diff) | |
download | mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.gz mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.tar.bz2 mazeoflife-ffd335aca284c286030e2b26f1a02a0441748f46.zip |
Started rewriting game from scratch with SDL2
Only the title screen is currently implemented
Diffstat (limited to 'state.h')
-rw-r--r-- | state.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/state.h b/state.h index 7373940..2d6f804 100644 --- a/state.h +++ b/state.h | |||
@@ -1,12 +1,12 @@ | |||
1 | #include <SDL.h> | ||
2 | |||
1 | #ifndef STATE_H | 3 | #ifndef STATE_H |
2 | #define STATE_H | 4 | #define STATE_H |
3 | 5 | ||
4 | class State | 6 | class State |
5 | { | 7 | { |
6 | public: | 8 | public: |
7 | virtual void input(SDL_keysym key) {}; | 9 | virtual State* operator() (SDL_Renderer* renderer) {return NULL;}; |
8 | virtual void tick() {}; | ||
9 | virtual void render(SDL_Surface* screen) {}; | ||
10 | }; | 10 | }; |
11 | 11 | ||
12 | #endif | 12 | #endif \ No newline at end of file |