AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Committer:
sillevl
Date:
Sat Dec 13 12:24:37 2014 +0000
Revision:
5:be598835bab0
Child:
12:22e9ef610ea2
Refactored game board (all hardware) and added abstract game class

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sillevl 5:be598835bab0 1 #ifndef GAME_H
sillevl 5:be598835bab0 2 #define GAME_H
sillevl 5:be598835bab0 3
sillevl 5:be598835bab0 4 #include "../board/Board.h"
sillevl 5:be598835bab0 5
sillevl 5:be598835bab0 6 class Game{
sillevl 5:be598835bab0 7 public:
sillevl 5:be598835bab0 8 Game(Board* board);
sillevl 5:be598835bab0 9 static const char* NAME;
sillevl 5:be598835bab0 10 static Game* create_game(Board* board, int choice); //factory method
sillevl 5:be598835bab0 11
sillevl 5:be598835bab0 12 virtual void run() = 0;
sillevl 5:be598835bab0 13
sillevl 5:be598835bab0 14 protected:
sillevl 5:be598835bab0 15 Board* board;
sillevl 5:be598835bab0 16
sillevl 5:be598835bab0 17 };
sillevl 5:be598835bab0 18
sillevl 5:be598835bab0 19
sillevl 5:be598835bab0 20 #endif