Beispiel #1
0
        public void Construct(
            EnemyModel model, EnemyRegistry registry, EnemyStateManager stateManager)
        {
            _model         = model;
            _enemyRegistry = registry;
            _stateManager  = stateManager;

            registry.AddEnemy(this);
        }
Beispiel #2
0
 public EnemySpawner(
     PlayerFacade player,
     Settings settings,
     EnemyFacade.Factory enemyFactory,
     EnemyRegistry enemyRegistry,
     EnemyGlobalTunables globalTunables)
 {
     _globalTunables = globalTunables;
     _enemyRegistry = enemyRegistry;
     _enemyFactory = enemyFactory;
     _settings = settings;
     _player = player;
 }
 public void Construct(
     EnemyView view,
     EnemyTunables tunables,
     EnemyDeathHandler deathHandler,
     EnemyStateManager stateManager,
     EnemyRegistry registry)
 {
     _view         = view;
     _tunables     = tunables;
     _deathHandler = deathHandler;
     _stateManager = stateManager;
     _registry     = registry;
 }
Beispiel #4
0
 public EnemySpawner(
     PlayerFacade player,
     Settings settings,
     EnemyFacade.Factory enemyFactory,
     EnemyRegistry enemyRegistry,
     EnemyGlobalTunables globalTunables)
 {
     _globalTunables = globalTunables;
     _enemyRegistry  = enemyRegistry;
     _enemyFactory   = enemyFactory;
     _settings       = settings;
     _player         = player;
 }
Beispiel #5
0
 public EnemyStateIdle(
     EnemyModel model, Settings settings,
     EnemyStateManager stateManager,
     EnemyRegistry registry,
     PlayerFacade player,
     EnemyGlobalTunables globalTunables)
 {
     _globalTunables = globalTunables;
     _player = player;
     _registry = registry;
     _stateManager = stateManager;
     _settings = settings;
     _model = model;
 }
 public EnemyStateIdle(
     EnemyModel model, Settings settings,
     EnemyStateManager stateManager,
     EnemyRegistry registry,
     PlayerFacade player,
     EnemyGlobalTunables globalTunables)
 {
     _globalTunables = globalTunables;
     _player         = player;
     _registry       = registry;
     _stateManager   = stateManager;
     _settings       = settings;
     _model          = model;
 }