AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
games/DummyGame.cpp@13:ece97a1108cc, 2015-05-23 (annotated)
- Committer:
- sillevl
- Date:
- Sat May 23 17:15:42 2015 +0000
- Revision:
- 13:ece97a1108cc
- Parent:
- 5:be598835bab0
- Child:
- 14:e0bfee0a5e66
Refactoring and adding GameFactory and Objective concept
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 5:be598835bab0 | 1 | #include "DummyGame.h" |
sillevl | 13:ece97a1108cc | 2 | #include "../objectives/WaitForKeyObjective.h" |
sillevl | 5:be598835bab0 | 3 | |
sillevl | 5:be598835bab0 | 4 | const char* NAME = "DummyGame"; |
sillevl | 5:be598835bab0 | 5 | |
sillevl | 5:be598835bab0 | 6 | DummyGame::DummyGame(Board* board) : Game(board){ |
sillevl | 5:be598835bab0 | 7 | |
sillevl | 5:be598835bab0 | 8 | } |
sillevl | 5:be598835bab0 | 9 | |
sillevl | 13:ece97a1108cc | 10 | void DummyGame::run(){ |
sillevl | 13:ece97a1108cc | 11 | WaitForKeyObjective* objective = new WaitForKeyObjective(); |
sillevl | 13:ece97a1108cc | 12 | objective->start(); |
sillevl | 13:ece97a1108cc | 13 | } |
sillevl | 13:ece97a1108cc | 14 | |
sillevl | 13:ece97a1108cc | 15 | void DummyGame::setup(){ |
sillevl | 13:ece97a1108cc | 16 | |
sillevl | 13:ece97a1108cc | 17 | } |