NerfUS game coordinator for the Nerf gun firing range

Dependencies:   HardwareInterface mbed-rtos mbed

Fork of NerfUS by NerfUS

Branch:
PlayableGame
Revision:
18:469c8b2a9af9
Parent:
17:48474266a361
Child:
19:33e8cd56630f
--- a/include/PlayableGame.hpp	Fri Mar 17 17:19:42 2017 -0400
+++ b/include/PlayableGame.hpp	Mon Mar 27 11:15:50 2017 -0400
@@ -24,16 +24,15 @@
   virtual int GetPoints();
   virtual GameStats GetStats();
 
-  virtual TargetInfo GetNextTarget() = 0;
+  virtual TargetInfo* GetNextTarget() = 0;
   void Start(); //Create a thread that will call GetNextTarget at set speed
   void Stop(); //Stop the thread
 
-  void TargetMsgReceived(int )
-
 protected:
   int points;
   GameStats stats;
-  TargetInfo GetRandomTarget(int timeout_ms );
+  TargetInfo *GetRandomTarget(int timeout_ms );
+  std::vector<TargetInfo>* targets;
 
   virtual void OnTargetHit(int timeTaken) = 0;
   virtual void OnTargetMiss() = 0;