NerfUS game coordinator for the Nerf gun firing range
Dependencies: HardwareInterface mbed-rtos mbed
Fork of NerfUS by
PrecisionMode.hpp
00001 #pragma once 00002 #include "PlayableGame.hpp" 00003 #include "Target.hpp" 00004 #include <cstddef> 00005 00006 class PrecisionMode : public PlayableGame 00007 { 00008 public: 00009 using PlayableGame::PlayableGame; 00010 ~PrecisionMode(); 00011 00012 TargetInfo * GetNextTarget(); 00013 void OnTargetHit(int timeTaken); 00014 void OnTargetMiss(); 00015 GameStats GetStats(); 00016 int getTargetSpeed = 1500; 00017 00018 private: 00019 int currentTarget = 0; 00020 int numberOfRounds = 5; 00021 };
Generated on Thu Jul 14 2022 07:10:37 by 1.7.2