AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
Diff: games/Game.cpp
- Revision:
- 14:e0bfee0a5e66
- Parent:
- 13:ece97a1108cc
- Child:
- 16:e8e96bf22df1
--- a/games/Game.cpp Sat May 23 17:15:42 2015 +0000 +++ b/games/Game.cpp Sat May 23 17:48:03 2015 +0000 @@ -14,9 +14,29 @@ leds->off(Leds::ALL); } +Board* Game::getBoard(){ + return board; +} + uint32_t Game::keyEvent(uint32_t key){ // play key pressed sound ? // do nothing by default return 0; } +void Game::init(){ + board->lcd->cls(); + board->lcd->printf("Starting game"); + board->lcd->locate(1,0); + board->lcd->printf("DummyGame"); + wait(3); +} + +void Game::end(){ + board->lcd->cls(); + board->lcd->printf("Ending game"); + board->lcd->locate(1,0); + board->lcd->printf("DummyGame"); + wait(5); +} +