public GameHub(IGameAreaManager areaManager, ITileDiscoveringService tileSrv, IAreaInfos areainfos) { AreaManager = areaManager; AreaManager.GenerationEnd += AreaManager_GenerationEnd; TileSrv = tileSrv; Areainfos = areainfos; CmdManualDiscover = new DelegateCommand(ExecuteManualDiscover); CmdStopManualDiscover = new DelegateCommand(StopDiscover); CmpdClearAllData = new DelegateCommand(ExecuteClearAllData); }
public GameAreaManager(ITileDiscoveringService tileDisc, IAreaInfos areainfos) { Areainfos = areainfos; _tileDisc = tileDisc; Tiles = new ObservableCollection <Tile> { }; Discover(false); Discover(false); }
public TileDiscoveringService(IAreaInfos areainfos) { _areainfos = areainfos; _ccords = new List <Tile>(); CreateRandomizers(); _ccordarray = new Tile[_areainfos.AreaWidth, _areainfos.AreaHeight]; TileCreationLogs = new ObservableCollection <string>(); _occupiedDirections = new List <CardinalTileOrientation>(); }