Exemple #1
0
        private ISector GetUnoccupiedRandomSector(IRegion Region)
        {
            var randomCoordinate = GetRandomCoordinate();

            ISector sector        = Region.GetSector(randomCoordinate);
            var     sectorIsEmpty = (sector.Item == SectorItem.Empty);

            if (!sectorIsEmpty)
            {
                sector = this.GetUnoccupiedRandomSector(Region);
            }

            return(sector);
        }