diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-18 17:20:59 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2009-06-18 17:20:59 -0400 |
commit | 71045152800ab0cc0dce6ec70dba9d7f9bb9dab5 (patch) | |
tree | 7a2f76780cfd16ecf22ff82a0229631b83f5cd0a /board.h | |
parent | 024d098c686ae971176332d91db91582ad353c17 (diff) | |
download | mazeoflife-71045152800ab0cc0dce6ec70dba9d7f9bb9dab5.tar.gz mazeoflife-71045152800ab0cc0dce6ec70dba9d7f9bb9dab5.tar.bz2 mazeoflife-71045152800ab0cc0dce6ec70dba9d7f9bb9dab5.zip |
Started Board class
Diffstat (limited to 'board.h')
-rw-r--r-- | board.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/board.h b/board.h new file mode 100644 index 0000000..e2dcd8d --- /dev/null +++ b/board.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef BOARD_H | ||
2 | #define BOARD_H | ||
3 | |||
4 | class Board | ||
5 | { | ||
6 | private: | ||
7 | Uint32 on; | ||
8 | Uint32 off; | ||
9 | bool blocks[WIDTH][HEIGHT]; | ||
10 | |||
11 | public: | ||
12 | Board(); | ||
13 | bool isObstructed(int x, int y); | ||
14 | void render(SDL_Surface* screen); | ||
15 | }; | ||
16 | |||
17 | #endif | ||