Ejemplo n.º 1
0
        public IEnumerable <ColonyCell> EnumerateManhattanNeighbors(ColonyCell Cell)
        {
            // Cells can have multiple neighbors on any edge.
            var r = new HashSet <ColonyCell>();

            EnumerateLine(new Point(Cell.Bounds.Left - 1, Cell.Bounds.Top), new Point(0, 1), Cell.Bounds.Height, r);
            EnumerateLine(new Point(Cell.Bounds.Right, Cell.Bounds.Top), new Point(0, 1), Cell.Bounds.Height, r);
            EnumerateLine(new Point(Cell.Bounds.Left, Cell.Bounds.Top - 1), new Point(1, 0), Cell.Bounds.Width, r);
            EnumerateLine(new Point(Cell.Bounds.Left, Cell.Bounds.Bottom), new Point(1, 0), Cell.Bounds.Width, r);
            return(r);
        }
Ejemplo n.º 2
0
 public InstanceSettings(ColonyCell Cell, GameStates.Overworld Overworld)
 {
     this.Cell        = Cell;
     InitalEmbarkment = new Embarkment(Overworld);
 }
Ejemplo n.º 3
0
 public InstanceSettings(ColonyCell Cell)
 {
     this.Cell = Cell;
 }