Coordinator v2

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

Revision:
1:e1c5259b7d9a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/includes/GameModes/SpeedMode.hpp	Mon Apr 10 15:02:24 2017 -0400
@@ -0,0 +1,25 @@
+#pragma once
+#include "GameMode.hpp"
+
+class SpeedMode : public GameMode
+{
+  public:
+    using GameMode::GameMode;
+    Target* GetNextTarget()
+    {
+      return GetRandomTarget();
+    }
+    void OnTargetHit(int timeTaken)
+    {
+      stats.targets++;
+      stats.score += 5;
+    }
+    void OnTargetMiss()
+    {
+      stats.score -= 1;
+    }  
+    int getTimeBetweenTargets()
+    {
+      return 1000;
+    }
+};
\ No newline at end of file