Ejemplo n.º 1
0
        public EnemySpawner(
            Settings settings,
            EnemyFacade.Pool enemyFactory,
            LevelBoundary levelBoundary,
            EnemyKilledSignal enemyKilledSignal)
        {
            _enemyKilledSignal = enemyKilledSignal;
            _levelBoundary     = levelBoundary;
            _enemyFactory      = enemyFactory;
            _settings          = settings;

            _desiredNumEnemies = settings.NumEnemiesStartAmount;
        }
Ejemplo n.º 2
0
        public EnemySpawner(
            Settings settings,
            EnemyFacade.Pool enemyFactory,
            LevelBoundary levelBoundary,
            GameEvents gameEvents)
        {
            _gameEvents    = gameEvents;
            _levelBoundary = levelBoundary;
            _enemyFactory  = enemyFactory;
            _settings      = settings;

            _desiredNumEnemies = settings.NumEnemiesStartAmount;
        }
Ejemplo n.º 3
0
 public EnemyDeathHandler(
     Enemy enemy,
     AudioPlayer audioPlayer,
     Explosion.Pool explosionPool,
     Settings settings,
     EnemyFacade.Pool selfFactory,
     GameEvents gameEvents,
     EnemyFacade facade)
 {
     _facade        = facade;
     _gameEvents    = gameEvents;
     _selfFactory   = selfFactory;
     _settings      = settings;
     _explosionPool = explosionPool;
     _audioPlayer   = audioPlayer;
     _enemy         = enemy;
 }
Ejemplo n.º 4
0
 public EnemyDeathHandler(
     Enemy enemy,
     IAudioPlayer audioPlayer,
     Explosion.Pool explosionPool,
     Settings settings,
     EnemyFacade.Pool selfFactory,
     EnemyFacade facade,
     EnemyKilledSignal enemyKilledSignal)
 {
     _enemyKilledSignal = enemyKilledSignal;
     _facade            = facade;
     _selfFactory       = selfFactory;
     _settings          = settings;
     _explosionPool     = explosionPool;
     _audioPlayer       = audioPlayer;
     _enemy             = enemy;
 }