AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
games/DummyGame.cpp@14:e0bfee0a5e66, 2015-05-23 (annotated)
- Committer:
- sillevl
- Date:
- Sat May 23 17:48:03 2015 +0000
- Revision:
- 14:e0bfee0a5e66
- Parent:
- 13:ece97a1108cc
- Child:
- 16:e8e96bf22df1
added ObjectiveFactory class and small refactoring on game
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sillevl | 5:be598835bab0 | 1 | #include "DummyGame.h" |
sillevl | 14:e0bfee0a5e66 | 2 | #include "../objectives/ObjectiveFactory.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 | 14:e0bfee0a5e66 | 11 | Objective* objective = new ObjectiveFactory->create(this, 0); |
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 | } |