Sille Van Landschoot / Mbed 2 deprecated AirsoftTimer

Dependencies:   mbed TextLCD keypad

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;
 }