AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
games/Game.cpp
- Committer:
- sillevl
- Date:
- 2015-05-23
- Revision:
- 12:22e9ef610ea2
- Parent:
- 11:50572814f73e
- Child:
- 13:ece97a1108cc
File content as of revision 12:22e9ef610ea2:
#include "Game.h" #include "DummyGame.h" #include "ShowBuzzer.h" Game::Game(Board* board){ this->board = board; lcd = board->lcd; leds = board->leds; key = board->key; button = board->button; keyboard = board->keyboard; buzzer = board->buzzer; //keyboard->attach(this,&Game::keyEvent); //keyboard->start(); leds->off(Leds::ALL); } Game* Game::create_game(Board* board, int choice){ Game* game = new ShowBuzzer(board); return game; } void Game::keyEvent(char key){ // play key pressed sound ? // do nothing by default }