예제 #1
0
 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);
 }
예제 #2
0
        public GameAreaManager(ITileDiscoveringService tileDisc, IAreaInfos areainfos)
        {
            Areainfos = areainfos;
            _tileDisc = tileDisc;

            Tiles = new ObservableCollection <Tile> {
            };
            Discover(false);
            Discover(false);
        }
예제 #3
0
        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>();
        }