NerfUS game coordinator for the Nerf gun firing range

Dependencies:   HardwareInterface mbed-rtos mbed

Fork of NerfUS by NerfUS

Revision:
16:5e6c695468b6
Child:
17:48474266a361
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/Target.hpp	Thu Feb 23 21:22:57 2017 -0500
@@ -0,0 +1,27 @@
+#ifndef TARGET_HPP
+#define TARGET_HPP
+
+enum TargetType
+{
+    TARGET_TYPE_ALLY,
+    TARGET_TYPE_ENEMY
+};
+
+struct TargetInfo
+{
+    int id;
+    TargetType type;
+    int timeout_ms;
+
+    bool operator==(const TargetInfo& other) const
+    {
+        return (id == other.id)
+            && (type == other.type)
+            && (timeout_ms == other.timeout_ms);
+    }
+};
+
+TargetInfo make_TargetInfo(int id, TargetType type, int timeout_ms);
+
+#endif
+