AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

games/Game.h

Committer:
sillevl
Date:
2015-05-23
Revision:
16:e8e96bf22df1
Parent:
14:e0bfee0a5e66
Child:
18:abcebc4d0da0

File content as of revision 16:e8e96bf22df1:

#ifndef GAME_H
#define GAME_H

#include "../board/Board.h"

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


#endif