AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Committer:
sillevl
Date:
Sat May 23 20:17:54 2015 +0000
Revision:
17:19dbb1dbb640
Parent:
10:afc22465169e
Child:
18:abcebc4d0da0
added buttonlistener to game selector (not yet working)

Who changed what in which revision?

UserRevisionLine numberNew 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 17:19dbb1dbb640 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 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 17:19dbb1dbb640 19 int selected_game;
sillevl 17:19dbb1dbb640 20
sillevl 10:afc22465169e 21 char* titles[7];
sillevl 10:afc22465169e 22
sillevl 17:19dbb1dbb640 23 virtual void buttonEvent(char c);
sillevl 17:19dbb1dbb640 24
sillevl 10:afc22465169e 25 public:
sillevl 10:afc22465169e 26 GameSelector(Board* board);
sillevl 17:19dbb1dbb640 27 int select();
sillevl 10:afc22465169e 28 };
sillevl 10:afc22465169e 29
sillevl 10:afc22465169e 30 #endif