public GameManager(MapView mapView, GameService service, ListBoxLogger listBoxLogger) { this.gameService = service; this.window = mapView; this.keyProcessor = new MainKeyProcessor(this); //MapLoader loader = new MapLoader(); //char[,] initialMap = loader.loadMap("TestMap.map"); AbstractLogger.Current = listBoxLogger; //this.gameService.InitializeGame(initialMap); this.mapDrawer = new MapDrawer(window.GridMap, 15, 20, this.gameService.Map); UpdateScreenMap(); UpdateGui(); }
private void switchToGameView(object sender, StartGameEventArgs e) { MapView map = new MapView(gameModel, e.gameService); map.gameEndedEvent += this.switchToHallOfFame; this.switchView(map); }