AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Game.h Source File

Game.h

00001 #ifndef GAME_H
00002 #define GAME_H
00003 
00004 #include "../board/Board.h"
00005 #include "../objectives/Objective.h"
00006 #include <vector>
00007 
00008 class Game /*: public ButtonListener*/{
00009     public:
00010     Game(Board* board);
00011     virtual ~Game();
00012     
00013     static const char* NAME;
00014     
00015     virtual void setup() = 0;
00016     void run();
00017     
00018     Board* getBoard();
00019     
00020     protected:
00021     Board* board;
00022     
00023     LCD* lcd;
00024     Leds* leds;
00025     Key* key;
00026     Button* button;
00027     Keyboard* keyboard;
00028     Buzzer* buzzer;
00029     
00030     vector<Objective*> objectives;
00031     
00032     void init();
00033     void end();
00034     
00035 };
00036 
00037 
00038 #endif