Sille Van Landschoot / Mbed 2 deprecated AirsoftTimer

Dependencies:   mbed TextLCD keypad

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CatchItKeepIt.h Source File

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