NerfUS game coordinator for the Nerf gun firing range

Dependencies:   HardwareInterface mbed-rtos mbed

Fork of NerfUS by NerfUS

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GameCoordinator.hpp Source File

GameCoordinator.hpp

00001 #ifndef GAME_COORDINATOR_HPP
00002 #define GAME_COORDINATOR_HPP
00003 
00004 #include <vector>
00005 
00006 #include "RandomNumberGenerator.hpp"
00007 #include "Target.hpp"
00008 #include "PlayableGame.hpp"
00009 #include "PrecisionMode.hpp"
00010 
00011 const int numberOfGameModes = 1;
00012 
00013 class GameCoordinator
00014 {
00015     public:
00016         GameCoordinator(RandomNumberGenerator& random_number_generator);
00017         std::vector<TargetInfo> generate_random_target_course(int number_of_targets, int timeout_ms);
00018 
00019     private:
00020         RandomNumberGenerator& random_number_generator;
00021         PlayableGame *currentGame;
00022         PlayableGame *gameModes[numberOfGameModes];
00023         std::vector<TargetInfo> targets;
00024 };
00025 
00026 #endif