Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NerfUSXbee PinDetect EthernetInterface JSON MFRC522 WebSocketClient mbed-rtos mbed
SpeedMode.hpp
00001 #pragma once 00002 #include "GameMode.hpp" 00003 00004 class SpeedMode : public GameMode 00005 { 00006 public: 00007 using GameMode::GameMode; 00008 Target* GetNextTarget() 00009 { 00010 return GetRandomTarget(); 00011 } 00012 void OnTargetHit(int timeTaken) 00013 { 00014 stats.targets++; 00015 stats.score += 5; 00016 } 00017 void OnTargetMiss() 00018 { 00019 stats.score -= 1; 00020 } 00021 int getTimeBetweenTargets() 00022 { 00023 return 1000; 00024 } 00025 };
Generated on Tue Jul 12 2022 15:36:49 by
1.7.2