Beispiel #1
0
 protected SpiralFormationController(Dictionary <ITile, IBuildingNode> nodes, ITile center, int squareSize, IMap map)
 {
     this.nodes      = nodes;
     this.map        = map;
     this.maxSize    = squareSize;
     this.Spiral     = new Spiral(center.MapLocation);
     spiralPositions = Spiral.GetSpiralEnumerator();
 }
Beispiel #2
0
        public MapFormationController(IMap map, ITile tile)
        {
            this.map = map;
            spiral   = new Spiral(tile.MapLocation).GetSpiralEnumerator();
            spiral.MoveNext();

            failedTypes = new HashSet <UnitType>();
        }