AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Committer:
sillevl
Date:
Sat May 23 15:28:55 2015 +0000
Revision:
12:22e9ef610ea2
Parent:
11:50572814f73e
Child:
13:ece97a1108cc
Showbuzzer game only

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sillevl 5:be598835bab0 1 #include "Game.h"
sillevl 5:be598835bab0 2 #include "DummyGame.h"
sillevl 11:50572814f73e 3 #include "ShowBuzzer.h"
sillevl 5:be598835bab0 4
sillevl 5:be598835bab0 5 Game::Game(Board* board){
sillevl 5:be598835bab0 6 this->board = board;
sillevl 12:22e9ef610ea2 7 lcd = board->lcd;
sillevl 12:22e9ef610ea2 8 leds = board->leds;
sillevl 12:22e9ef610ea2 9 key = board->key;
sillevl 12:22e9ef610ea2 10 button = board->button;
sillevl 12:22e9ef610ea2 11 keyboard = board->keyboard;
sillevl 12:22e9ef610ea2 12 buzzer = board->buzzer;
sillevl 12:22e9ef610ea2 13
sillevl 12:22e9ef610ea2 14 //keyboard->attach(this,&Game::keyEvent);
sillevl 12:22e9ef610ea2 15 //keyboard->start();
sillevl 12:22e9ef610ea2 16 leds->off(Leds::ALL);
sillevl 5:be598835bab0 17 }
sillevl 5:be598835bab0 18
sillevl 5:be598835bab0 19 Game* Game::create_game(Board* board, int choice){
sillevl 11:50572814f73e 20 Game* game = new ShowBuzzer(board);
sillevl 5:be598835bab0 21 return game;
sillevl 5:be598835bab0 22 }
sillevl 5:be598835bab0 23
sillevl 12:22e9ef610ea2 24 void Game::keyEvent(char key){
sillevl 12:22e9ef610ea2 25 // play key pressed sound ?
sillevl 12:22e9ef610ea2 26 // do nothing by default
sillevl 12:22e9ef610ea2 27 }
sillevl 12:22e9ef610ea2 28