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-27
Branch:
PlayableGame
Revision:
18:469c8b2a9af9
Parent:
17:48474266a361
Child:
19:33e8cd56630f

File content as of revision 18:469c8b2a9af9:

#pragma once
#include "PlayableGame.hpp"
#include "Target.hpp"
#include <cstddef>

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

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

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