AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
games/GameSelector.h@27:f29805113454, 2017-02-09 (annotated)
- Committer:
- sillevl
- Date:
- Thu Feb 09 12:28:56 2017 +0000
- Revision:
- 27:f29805113454
- Parent:
- 19:2eba101d9c2c
ARCHIVE WIP, not working (crashes, cause unknown)
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 |