AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

games/Game.h

Committer:
sillevl
Date:
2015-05-23
Revision:
14:e0bfee0a5e66
Parent:
13:ece97a1108cc
Child:
16:e8e96bf22df1

File content as of revision 14:e0bfee0a5e66:

#ifndef GAME_H
#define GAME_H

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

class Game{
    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;
    
    uint32_t keyEvent(uint32_t key);
    
    void init();
    void end();
    
};


#endif