AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
Diff: games/CatchItKeepIt.cpp
- Revision:
- 12:22e9ef610ea2
- Child:
- 27:f29805113454
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/games/CatchItKeepIt.cpp Sat May 23 15:28:55 2015 +0000 @@ -0,0 +1,34 @@ + +#include "CatchItKeepIt.h" + + +static const char* NAME = "ShowBuzzer"; + +CatchItKeepIt::CatchItKeepIt(Board* board) : Game(board){ + Settings settings; + settings.activation_code[0] = 1397; + settings.activation_code[1] = 2684; + settings.activation_code[2] = 1597; + settings.activation_code[3] = 3579; + settings.timeout = 60; // 1 minute + settings.decrease_timeout = 0; // decrease with 0% + settings.beep_interval = 1; // beep every second + settings.team_count = 2; // start with 2 teams +} + +void CatchItKeepIt::setup(){ + // number of teams + // set timer + // set beep interval + // set decrease timer interval + // uses custom codes? +} + +void CatchItKeepIt::run(){ + while(true){ + // wait for code input + // count down + // beep + // don't return from this function yet (only if the game ends); + } +} \ No newline at end of file