NerfUS game coordinator for the Nerf gun firing range
Dependencies: HardwareInterface mbed-rtos mbed
Fork of NerfUS by
Diff: include/GameModes/PrecisionMode.hpp
- Branch:
- PlayableGame
- Revision:
- 19:33e8cd56630f
- Parent:
- 18:469c8b2a9af9
--- a/include/GameModes/PrecisionMode.hpp Mon Mar 27 11:15:50 2017 -0400 +++ b/include/GameModes/PrecisionMode.hpp Thu Mar 30 13:40:36 2017 -0400 @@ -3,15 +3,17 @@ #include "Target.hpp" #include <cstddef> -class PrecisionMode : PlayableGame +class PrecisionMode : public PlayableGame { public: + using PlayableGame::PlayableGame; ~PrecisionMode(); TargetInfo * GetNextTarget(); void OnTargetHit(int timeTaken); void OnTargetMiss(); GameStats GetStats(); + int getTargetSpeed = 1500; private: int currentTarget = 0;