Coordinator v2

Dependencies:   NerfUSXbee PinDetect EthernetInterface JSON MFRC522 WebSocketClient mbed-rtos mbed

Revision:
2:019d8848cf7e
Parent:
1:e1c5259b7d9a
--- a/includes/GameCoordinator.hpp	Mon Apr 10 15:02:24 2017 -0400
+++ b/includes/GameCoordinator.hpp	Tue Apr 11 12:40:05 2017 -0400
@@ -16,6 +16,10 @@
         void stop_game();
         void ticker_callback();
         void get_next_round();
+        void target_hit(int time_taken);
+        void target_miss();
+
+        void (*on_game_finish)(ServerEvent) = NULL;
 
         vector<Target> targets;
         Thread Tget_next_round;
@@ -25,6 +29,7 @@
         uint16_t target_timeout = 10000;
         uint8_t number_of_targets = 10;
         Ticker ticker;
+        Timer timer;
 };
 
 extern GameCoordinator gameCoordinator;
\ No newline at end of file