Ejemplo n.º 1
0
 public CameraHandler(
     PlayerFacade player,
     Camera camera,
     Settings settings)
 {
     _settings = settings;
     _camera = camera;
     _player = player;
 }
Ejemplo n.º 2
0
 public EnemyStateRunAway(
     PlayerFacade player,
     EnemyModel model,
     Settings settings,
     EnemyStateManager stateManager)
 {
     _stateManager = stateManager;
     _settings = settings;
     _model = model;
     _player = player;
 }
Ejemplo n.º 3
0
 public EnemySpawner(
     PlayerFacade player,
     Settings settings,
     EnemyFacade.Factory enemyFactory,
     EnemyRegistry enemyRegistry,
     EnemyGlobalTunables globalTunables)
 {
     _globalTunables = globalTunables;
     _enemyRegistry = enemyRegistry;
     _enemyFactory = enemyFactory;
     _settings = settings;
     _player = player;
 }
Ejemplo n.º 4
0
 public EnemyStateFollow(
     PlayerFacade player,
     EnemyModel model,
     EnemyStateManager stateManager,
     EnemyTunables tunables,
     Settings settings)
 {
     _settings = settings;
     _tunables = tunables;
     _stateManager = stateManager;
     _model = model;
     _player = player;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 6
0
 public EnemyStateAttack(
     Bullet.Factory bulletFactory,
     EnemyModel model,
     Settings settings,
     PlayerFacade player,
     EnemyStateManager stateManager,
     EnemyTunables tunables)
 {
     _tunables = tunables;
     _stateManager = stateManager;
     _player = player;
     _settings = settings;
     _model = model;
     _bulletFactory = bulletFactory;
     _strafeRight = Random.Range(0.0f, 1.0f) < 0.5f;
 }
 public EnemyStateAttack(
     Bullet.Factory bulletFactory,
     EnemyView view,
     Settings settings,
     PlayerFacade player,
     EnemyStateManager stateManager,
     EnemyTunables tunables,
     AudioPlayer audioPlayer,
     EnemyCommonSettings commonSettings,
     EnemyRotationHandler rotationHandler)
 {
     _rotationHandler = rotationHandler;
     _commonSettings  = commonSettings;
     _audioPlayer     = audioPlayer;
     _tunables        = tunables;
     _stateManager    = stateManager;
     _player          = player;
     _settings        = settings;
     _view            = view;
     _bulletFactory   = bulletFactory;
     _strafeRight     = Random.Range(0.0f, 1.0f) < 0.5f;
 }