Beispiel #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);
        }
Beispiel #2
0
        public override BaseGrid Clone()
        {
            var tNewGrid = new DynamicGrid();

            foreach (var keyValue in m_nodes)
            {
                tNewGrid.SetWalkableAt(keyValue.Key.x, keyValue.Key.y, true);
            }

            return(tNewGrid);
        }
Beispiel #3
0
        public override BaseGrid Clone()
        {
            var tNewGrid = new DynamicGrid();

            foreach (var keyValue in m_nodes)
            {
                tNewGrid.SetWalkableAt(keyValue.Key.x, keyValue.Key.y, true);

            }

            return tNewGrid;
        }
Beispiel #4
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;
        }