NerfUS game coordinator for the Nerf gun firing range
Dependencies: HardwareInterface mbed-rtos mbed
Fork of NerfUS by
include/GameModes/PrecisionMode.hpp@17:48474266a361, 2017-03-17 (annotated)
- Committer:
- Ismael Balafrej
- Date:
- Fri Mar 17 17:19:42 2017 -0400
- Branch:
- PlayableGame
- Revision:
- 17:48474266a361
- Child:
- 18:469c8b2a9af9
First Commit of PlayableGame
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ismael Balafrej |
17:48474266a361 | 1 | #pragma once |
Ismael Balafrej |
17:48474266a361 | 2 | #include "PlayableGame.hpp" |
Ismael Balafrej |
17:48474266a361 | 3 | #include "Target.hpp" |
Ismael Balafrej |
17:48474266a361 | 4 | |
Ismael Balafrej |
17:48474266a361 | 5 | class PrecisionMode : PlayableGame |
Ismael Balafrej |
17:48474266a361 | 6 | { |
Ismael Balafrej |
17:48474266a361 | 7 | public: |
Ismael Balafrej |
17:48474266a361 | 8 | ~PrecisionMode(); |
Ismael Balafrej |
17:48474266a361 | 9 | |
Ismael Balafrej |
17:48474266a361 | 10 | TargetInfo GetNextTarget(); |
Ismael Balafrej |
17:48474266a361 | 11 | void OnTargetHit(int timeTaken); |
Ismael Balafrej |
17:48474266a361 | 12 | void OnTargetMiss(); |
Ismael Balafrej |
17:48474266a361 | 13 | GameStats GetStats(); |
Ismael Balafrej |
17:48474266a361 | 14 | |
Ismael Balafrej |
17:48474266a361 | 15 | private: |
Ismael Balafrej |
17:48474266a361 | 16 | int currentTarget = 0; |
Ismael Balafrej |
17:48474266a361 | 17 | int numberOfRounds = 5; |
Ismael Balafrej |
17:48474266a361 | 18 | }; |