/** Links this NodeRun with the specified node.
  * \param node Node to link to
  * \param index Index of this NodeRun in the nodeRuns array in Pathfinding::AstarData
  */
 public void Link(Node node, int index)
 {
     if (index != node.GetNodeIndex())
     {
         throw new System.Exception("Node indices out of sync when creating NodeRun data (node index != specified index)");
     }
 }
Example #2
0
 /** Links this NodeRun with the specified node.
  * \param node Node to link to
  * \param index Index of this NodeRun in the nodeRuns array in Pathfinding::AstarData
  */
 public void Link(Node node, int index)
 {
     #if !SingleCoreOptimize
     this.node = node;
     #endif
     if (index != node.GetNodeIndex ())
         throw new System.Exception ("Node indices out of sync when creating NodeRun data (node index != specified index)");
 }
Example #3
0
        /** Links this NodeRun with the specified node.
         * \param node Node to link to
         * \param index Index of this NodeRun in the nodeRuns array in Pathfinding::AstarData
         */
        public void Link(Node node, int index)
        {
#if !SingleCoreOptimize
            this.node = node;
#endif
            if (index != node.GetNodeIndex())
            {
                throw new System.Exception("Node indices out of sync when creating NodeRun data (node index != specified index)");
            }
        }
Example #4
0
        /** Links this NodeRun with the specified node.
         * \param node Node to link to
         * \param index Index of this NodeRun in the nodeRuns array in Pathfinding.AstarData
         */
        public void Link(Node node, int index)
        {
#if !ASTAR_SINGLE_THREAD_OPTIMIZE
            this.node = node;
#endif
            if (index != node.GetNodeIndex())
            {
                throw new System.Exception("Node indices out of sync when creating NodeRun data (node index != specified index)");
            }
        }
		/** Links this NodeRun with the specified node.
		 * \param node Node to link to
		 * \param index Index of this NodeRun in the nodeRuns array in Pathfinding.AstarData
		 */
		public void Link (Node node, int index) {
			if (index != node.GetNodeIndex ())
				throw new System.Exception ("Node indices out of sync when creating NodeRun data (node index != specified index)");
		}
Example #6
0
 /** Links this NodeRun with the specified node.
  * \param node Node to link to
  * \param index Index of this NodeRun in the nodeRuns array in Pathfinding.AstarData
  */
 public void Link(Node node, int index)
 {
     #if !ASTAR_SINGLE_THREAD_OPTIMIZE
     this.node = node;
     #endif
     if (index != node.GetNodeIndex ())
         throw new System.Exception ("Node indices out of sync when creating NodeRun data (node index != specified index)");
 }