Beispiel #1
0
        public GameController(IAsteroidsManager asteroidsManager, Player player, GameStateData gameStateData,
                              IPlayerBehaviour playerBehaviour, ITimingManager timingManager, IGameInput gameInput,
                              IOpponentBehaviour opponentBehaviour, IBoundProvider boundProvider)
        {
            _asteroidsManager  = asteroidsManager;
            _player            = player;
            _gameStateData     = gameStateData;
            _playerBehaviour   = playerBehaviour;
            _timingManager     = timingManager;
            _gameInput         = gameInput;
            _opponentBehaviour = opponentBehaviour;
            _boundProvider     = boundProvider;

            _player.Death += OnDeath;
            _asteroidsManager.AsteroidDespawned += OnAsteroidDespawn;
            _gameInput.RestartPressed           += OnRestartPressed;

            StartGame();
        }
 public BoundariesController(IBoundedObjectsList boundedObjectsList, IBoundProvider boundProvider)
 {
     _boundedObjectsList = boundedObjectsList;
     _boundProvider      = boundProvider;
 }