Class containing all the bitmaps for the 10 different mazes used throughout the game.
Maze.h@2:834bd321a30d, 2017-05-03 (annotated)
- Committer:
- el15mh
- Date:
- Wed May 03 21:13:38 2017 +0000
- Revision:
- 2:834bd321a30d
- Parent:
- 1:8ed19eb9e7e5
- Child:
- 3:8547399e8c29
fully working program
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el15mh | 2:834bd321a30d | 1 | /* |
el15mh | 2:834bd321a30d | 2 | |
el15mh | 2:834bd321a30d | 3 | @file Maze.h |
el15mh | 2:834bd321a30d | 4 | |
el15mh | 2:834bd321a30d | 5 | (c) Max Houghton 19.03.17 |
el15mh | 2:834bd321a30d | 6 | Roller Maze Project, ELEC2645, Univeristy of Leeds |
el15mh | 2:834bd321a30d | 7 | |
el15mh | 2:834bd321a30d | 8 | */ |
el15mh | 0:d5a32831fa28 | 9 | |
el15mh | 0:d5a32831fa28 | 10 | #ifndef MAZE_H |
el15mh | 0:d5a32831fa28 | 11 | #define MAZE_H |
el15mh | 0:d5a32831fa28 | 12 | |
el15mh | 0:d5a32831fa28 | 13 | #include "mbed.h" |
el15mh | 0:d5a32831fa28 | 14 | #include "N5110.h" |
el15mh | 0:d5a32831fa28 | 15 | |
el15mh | 0:d5a32831fa28 | 16 | class Maze |
el15mh | 0:d5a32831fa28 | 17 | { |
el15mh | 0:d5a32831fa28 | 18 | |
el15mh | 0:d5a32831fa28 | 19 | public: |
el15mh | 0:d5a32831fa28 | 20 | |
el15mh | 1:8ed19eb9e7e5 | 21 | // constructor & destructor |
el15mh | 0:d5a32831fa28 | 22 | Maze(); |
el15mh | 0:d5a32831fa28 | 23 | ~Maze(); |
el15mh | 0:d5a32831fa28 | 24 | |
el15mh | 1:8ed19eb9e7e5 | 25 | // initialisation method |
el15mh | 1:8ed19eb9e7e5 | 26 | // desired maze is selected here |
el15mh | 1:8ed19eb9e7e5 | 27 | void init(int mazeIndex); |
el15mh | 1:8ed19eb9e7e5 | 28 | void draw(N5110 &lcd); |
el15mh | 1:8ed19eb9e7e5 | 29 | |
el15mh | 1:8ed19eb9e7e5 | 30 | private: |
el15mh | 1:8ed19eb9e7e5 | 31 | |
el15mh | 2:834bd321a30d | 32 | void testMaze(N5110 &lcd); |
el15mh | 2:834bd321a30d | 33 | |
el15mh | 2:834bd321a30d | 34 | void mazeIndexZero(N5110 &lcd); |
el15mh | 2:834bd321a30d | 35 | void mazeIndexOne(N5110 &lcd); |
el15mh | 2:834bd321a30d | 36 | void mazeIndexTwo(N5110 &lcd); |
el15mh | 2:834bd321a30d | 37 | |
el15mh | 2:834bd321a30d | 38 | void mazeIndexThree(N5110 &lcd); |
el15mh | 2:834bd321a30d | 39 | void mazeIndexFour(N5110 &lcd); |
el15mh | 2:834bd321a30d | 40 | void mazeIndexFive(N5110 &lcd); |
el15mh | 2:834bd321a30d | 41 | |
el15mh | 2:834bd321a30d | 42 | void mazeIndexSix(N5110 &lcd); |
el15mh | 2:834bd321a30d | 43 | void mazeIndexSeven(N5110 &lcd); |
el15mh | 2:834bd321a30d | 44 | void mazeIndexEight(N5110 &lcd); |
el15mh | 2:834bd321a30d | 45 | |
el15mh | 2:834bd321a30d | 46 | void mazeIndexNine(N5110 &lcd); |
el15mh | 0:d5a32831fa28 | 47 | |
el15mh | 1:8ed19eb9e7e5 | 48 | int _mazeIndex; |
el15mh | 0:d5a32831fa28 | 49 | }; |
el15mh | 0:d5a32831fa28 | 50 | |
el15mh | 2:834bd321a30d | 51 | #endif /* MAZE_H */ |