AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
CatchItKeepIt.cpp
00001 00002 #include "CatchItKeepIt.h" 00003 00004 00005 static const char* NAME = "ShowBuzzer"; 00006 00007 CatchItKeepIt::CatchItKeepIt(Board* board) : Game(board){ 00008 Settings settings; 00009 settings.activation_code[0] = 1397; 00010 settings.activation_code[1] = 2684; 00011 settings.activation_code[2] = 1597; 00012 settings.activation_code[3] = 3579; 00013 settings.timeout = 60; // 1 minute 00014 settings.decrease_timeout = 0; // decrease with 0% 00015 settings.beep_interval = 1; // beep every second 00016 settings.team_count = 2; // start with 2 teams 00017 } 00018 00019 void CatchItKeepIt::setup(){ 00020 // number of teams 00021 // set timer 00022 // set beep interval 00023 // set decrease timer interval 00024 // uses custom codes? 00025 } 00026 00027 void CatchItKeepIt::run(){ 00028 while(true){ 00029 // wait for code input 00030 // count down and beep 00031 // wait for code 00032 // repeat 00033 // don't return from this function yet (only if the game ends); 00034 } 00035 } 00036 00037 void end(){ 00038 // show winner 00039 }
Generated on Tue Jul 12 2022 21:04:09 by 1.7.2