AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
games/GameSelector.h@19:2eba101d9c2c, 2015-05-23 (annotated)
- Committer:
- sillevl
- Date:
- Sat May 23 22:42:51 2015 +0000
- Revision:
- 19:2eba101d9c2c
- Parent:
- 18:abcebc4d0da0
game selector working (solved strange behaviour with buttonEvent and lcd commands)
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 | 18:abcebc4d0da0 | 6 | class GameSelector /*: public ButtonListener*/{ |
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 | 19:2eba101d9c2c | 15 | volatile int start_position; |
sillevl | 19:2eba101d9c2c | 16 | volatile int current_selection; |
sillevl | 19:2eba101d9c2c | 17 | volatile int total_selections; |
sillevl | 10:afc22465169e | 18 | |
sillevl | 19:2eba101d9c2c | 19 | volatile int selected_game; |
sillevl | 17:19dbb1dbb640 | 20 | |
sillevl | 10:afc22465169e | 21 | char* titles[7]; |
sillevl | 10:afc22465169e | 22 | |
sillevl | 19:2eba101d9c2c | 23 | int update_screen; |
sillevl | 17:19dbb1dbb640 | 24 | |
sillevl | 10:afc22465169e | 25 | public: |
sillevl | 19:2eba101d9c2c | 26 | uint32_t buttonEvent(uint32_t c); |
sillevl | 10:afc22465169e | 27 | GameSelector(Board* board); |
sillevl | 17:19dbb1dbb640 | 28 | int select(); |
sillevl | 10:afc22465169e | 29 | }; |
sillevl | 10:afc22465169e | 30 | |
sillevl | 10:afc22465169e | 31 | #endif |