NerfUS game coordinator for the Nerf gun firing range

Dependencies:   HardwareInterface mbed-rtos mbed

Fork of NerfUS by NerfUS

include/GameModes/PrecisionMode.hpp

Committer:
Ismael Balafrej
Date:
2017-03-17
Branch:
PlayableGame
Revision:
17:48474266a361
Child:
18:469c8b2a9af9

File content as of revision 17:48474266a361:

#pragma once
#include "PlayableGame.hpp"
#include "Target.hpp"

class PrecisionMode : PlayableGame
{
public:
  ~PrecisionMode();

  TargetInfo GetNextTarget();
  void OnTargetHit(int timeTaken);
  void OnTargetMiss();
  GameStats GetStats();

private:
  int currentTarget = 0;
  int numberOfRounds = 5;
};