Coordinator v2

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

Revision:
2:019d8848cf7e
Parent:
1:e1c5259b7d9a
--- a/includes/dispatcher.hpp	Mon Apr 10 15:02:24 2017 -0400
+++ b/includes/dispatcher.hpp	Tue Apr 11 12:40:05 2017 -0400
@@ -6,8 +6,11 @@
 
 void dispatch_event_from_target(vector<uint8_t> data, int* address)
 {
-    //addr: table of 8 int 
-    //TODO - calc stats
+    if (data[1]) {
+        gameCoordinator.target_miss();
+    } else {
+        gameCoordinator.target_hit((data[2] << 8) | data[3]);
+    }
 }
 
 void dispatch_event_from_server(ServerEvent *event) {