Exemplo n.º 1
0
        public override BaseGrid Clone()
        {
            DynamicGrid tNewGrid = new DynamicGrid();

            foreach (KeyValuePair <GridPos, Node> keyValue in m_nodes)
            {
                tNewGrid.SetWalkableAt(keyValue.Key.x, keyValue.Key.y, true);
            }

            return(tNewGrid);
        }
Exemplo n.º 2
0
 public DynamicGrid(DynamicGrid b)
     : base(b)
 {
     m_notSet = b.m_notSet;
     m_nodes  = new Dictionary <GridPos, Node>(b.m_nodes);
 }
Exemplo n.º 3
0
        public override BaseGrid Clone()
        {
            DynamicGrid tNewGrid = new DynamicGrid(null);

            foreach (KeyValuePair<GridPos, Node> keyValue in m_nodes)
            {
                tNewGrid.SetWalkableAt(keyValue.Key.x, keyValue.Key.y, true);

            }

            return tNewGrid;
        }