Ejemplo n.º 1
0
        private void OnReadyForNextCell()
        {
            // switch the current cell
            CurrentCell = TargetCell;

            // set the next cell
            if (TargetCell != null)
            {
                // get the dijkstra node
                DijkstraNodeAlliance parent = TargetCell[DijkstraKey].Parent as DijkstraNodeAlliance;
                TargetCell = (parent != null ? parent.Cell : null);
            }

            // compute the orientation
            AdjustOrientation();
        }
Ejemplo n.º 2
0
 public void LinkDijkstraNode(DijkstraNodeAlliance node, DijkstraType type)
 {
     mDijkstraData[(int)type] = node;
 }