AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

games/Game.h

Committer:
sillevl
Date:
2017-02-09
Revision:
27:f29805113454
Parent:
23:eb5a5da6e83f

File content as of revision 27:f29805113454:

#ifndef GAME_H
#define GAME_H

#include "../board/Board.h"
#include "../objectives/Objective.h"
#include <vector>

class Game /*: public ButtonListener*/{
    public:
    Game(Board* board);
    virtual ~Game();
    
    static const char* NAME;
    
    virtual void setup() = 0;
    void run();
    
    Board* getBoard();
    
    protected:
    Board* board;
    
    LCD* lcd;
    Leds* leds;
    Key* key;
    Button* button;
    Keyboard* keyboard;
    Buzzer* buzzer;
    
    vector<Objective*> objectives;
    
    void init();
    void end();
    
};


#endif