Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed TextLCD keypad
Diff: objectives/Objective.cpp
- Revision:
- 14:e0bfee0a5e66
- Parent:
- 13:ece97a1108cc
- Child:
- 15:78116b7254d5
--- a/objectives/Objective.cpp Sat May 23 17:15:42 2015 +0000
+++ b/objectives/Objective.cpp Sat May 23 17:48:03 2015 +0000
@@ -1,7 +1,16 @@
#include "Objective.h"
-Objective::Objective(){
+Objective::Objective(Game* game){
+ this->game = game;
+ Board* board = game->getBoard();
+ lcd = board->lcd;
+ leds = board->leds;
+ key = board->key;
+ button = board->button;
+ keyboard = board->keyboard;
+ buzzer = board->buzzer;
+
status = WAITING;
}
@@ -15,11 +24,6 @@
}
}
-void Objective::run(){
- //board->lcd->printf("DummyGame");
- //board->lcd->printf("press any key to continue");
-}
-
void Objective::complete(){
status = COMPLETED;
}
