public GameLevel(GameLevelSettings settings, EnemyFactory enemyFactory, GamePhaseManager gamePhaseManager, InputManager inputManager, TowerFactory towerFactory) { _settings = settings; _enemyFactory = enemyFactory; _gamePhaseManager = gamePhaseManager; _inputManager = inputManager; _towerFactory = towerFactory; inputManager.OnKeyReleased += InputManagerOnOnKeyReleased; inputManager.OnClick += InputManagerOnOnClick; }
public GameWindow(GamePhaseManager phaseManager, StartScreen startScreen, GameLevelFactory gameLevelFactory, InputManager inputManager) { _phaseManager = phaseManager; _startScreen = startScreen; _gameLevelFactory = gameLevelFactory; _inputManager = inputManager; _inputManager.SetMousePointFunction(() => PointToClient(Cursor.Position)); InitializeComponent(); Show(); }
public GameWindow(GamePhaseManager phaseManager, InputManager inputManager, GameBus bus, ApplicationLogger applicationLogger, LogsOverlay logsOverlay) { _phaseManager = phaseManager; _bus = bus; _applicationLogger = applicationLogger; _logsOverlay = logsOverlay; _inputManager = inputManager; _inputManager.SetMousePointFunction(() => PointToClient(Cursor.Position)); _bus.Subscribe <MessageWindowResized>(a => { InitBackBuffer(a.DisplayRectangle); }); InitializeComponent(); Show(); }
// Use this for initialization void Awake () { Instance = this; StartPhase (GamePhase.Focus); }
public EnemyFactory(GamePhaseManager gamePhaseManager) { _gamePhaseManager = gamePhaseManager; }