NerfUS game coordinator for the Nerf gun firing range
Dependencies: HardwareInterface mbed-rtos mbed
Fork of NerfUS by
include/Target.hpp
- Committer:
- Ismael Balafrej
- Date:
- 2017-03-27
- Branch:
- PlayableGame
- Revision:
- 18:469c8b2a9af9
- Parent:
- 17:48474266a361
File content as of revision 18:469c8b2a9af9:
#ifndef TARGET_HPP #define TARGET_HPP enum TargetType { TARGET_TYPE_ALLY, TARGET_TYPE_ENEMY }; struct TargetInfo { int id; TargetType type; int timeout_ms; void riseTarget(); //TODO 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