Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TextLCD keypad
CatchItKeepIt.h
00001 00002 #ifndef CATCHITKEEPIT_H 00003 #define CATCHITKEEPIT_H 00004 00005 #include "Game.h" 00006 00007 class CatchItKeepIt : public Game{ 00008 00009 public: 00010 CatchItKeepIt(Board* board); 00011 virtual void setup(); 00012 virtual void run(); 00013 00014 protected: 00015 enum Team {ALPHA, BRAVO, CHARLY, DELTA}; 00016 00017 struct Settings{ 00018 int team_count; 00019 int activation_code[4]; 00020 int timeout; 00021 int beep_interval; 00022 int decrease_timeout; 00023 }; 00024 00025 static const int MIN_TEAMS = 2; 00026 static const int MAX_TEAMS = 4; 00027 static const int MIN_TIMEOUT = 60; // 1 minute 00028 static const int MAX_TIMEOUT = 60*60; // 1 hour 00029 static const int MIN_BEEP_INTERVAL = 0; 00030 static const int MAX_BEEP_INTERVAL = 10; 00031 static const int MIN_DECREASE_TIMEOUT = 0; 00032 static const int MAX_DECREASE_TIMEOUT = 75; 00033 00034 }; 00035 00036 00037 #endif
Generated on Tue Jul 12 2022 21:04:09 by
1.7.2