Exemplo n.º 1
0
        public AStarNode this[PointInt32 point]
        {
            get {
            int index = point.Y * m_Width + point.X;
            AStarNode result;
            if (!m_Nodes.TryGetValue(index, out result)) {
              result = new AStarNode(point);
              m_Nodes[index] = result;
            }

            return result;
              }
              set {
            int index = point.Y * m_Width + point.X;
            m_Nodes[index] = value;
              }
        }
Exemplo n.º 2
0
 public int SetParent(AStarNode parent)
 {
     this.Depth = parent.Depth + 1;
       this.Parent = parent;
       return this.Depth;
 }
Exemplo n.º 3
0
 public int SetParent(AStarNode parent)
 {
     this.Depth  = parent.Depth + 1;
     this.Parent = parent;
     return(this.Depth);
 }