AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
games/GameSelector.h@10:afc22465169e, 2014-12-14 (annotated)
- Committer:
- sillevl
- Date:
- Sun Dec 14 11:50:19 2014 +0000
- Revision:
- 10:afc22465169e
- Child:
- 17:19dbb1dbb640
Added game selector skeleton + demo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 10:afc22465169e | 1 | #ifndef GAMESELECTOR_H |
sillevl | 10:afc22465169e | 2 | #define GAMESELECTOR_H |
sillevl | 10:afc22465169e | 3 | |
sillevl | 10:afc22465169e | 4 | #include "../board/Board.h" |
sillevl | 10:afc22465169e | 5 | |
sillevl | 10:afc22465169e | 6 | class GameSelector{ |
sillevl | 10:afc22465169e | 7 | Board* board; |
sillevl | 10:afc22465169e | 8 | void print_up_down_arrows(); |
sillevl | 10:afc22465169e | 9 | void print_selection_arrow(); |
sillevl | 10:afc22465169e | 10 | void print_list(); |
sillevl | 10:afc22465169e | 11 | |
sillevl | 10:afc22465169e | 12 | void go_down(); |
sillevl | 10:afc22465169e | 13 | void go_up(); |
sillevl | 10:afc22465169e | 14 | |
sillevl | 10:afc22465169e | 15 | int start_position; |
sillevl | 10:afc22465169e | 16 | int current_selection; |
sillevl | 10:afc22465169e | 17 | int total_selections; |
sillevl | 10:afc22465169e | 18 | |
sillevl | 10:afc22465169e | 19 | char* titles[7]; |
sillevl | 10:afc22465169e | 20 | |
sillevl | 10:afc22465169e | 21 | public: |
sillevl | 10:afc22465169e | 22 | GameSelector(Board* board); |
sillevl | 10:afc22465169e | 23 | void run(); |
sillevl | 10:afc22465169e | 24 | }; |
sillevl | 10:afc22465169e | 25 | |
sillevl | 10:afc22465169e | 26 | #endif |