Beispiel #1
0
        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();
        }
		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();
		}