Beispiel #1
0
 public void dispose()
 {
     if (m_pStopPoint != null)
     {
         m_pStopPoint = null;
     }
 }
Beispiel #2
0
 public void dispose()
 {
     if (m_pStopPoint != null)
     {
         m_pStopPoint = null;
     }
 }
Beispiel #3
0
        public void addStopPoint(int nx, int ny, StopPoint pStopPoint)
        {
            int vertId = convXYToVertId(nx, ny);

            m_vertsVec[vertId].m_pStopPoint = pStopPoint;

            setNeighborInvalidByVertId(vertId);
        }
Beispiel #4
0
 public void reset()
 {
     //m_id = 0;
     m_state = State.Unknown;
     m_nearestVert = null;
     m_distance = float.MaxValue;
     m_bNeighborValid = false;
     m_pStopPoint = null;
     m_vertsIdVec.Clear();
 }
Beispiel #5
0
 public void reset()
 {
     //m_id = 0;
     m_state          = State.Unknown;
     m_nearestVert    = null;
     m_distance       = float.MaxValue;
     m_bNeighborValid = false;
     m_pStopPoint     = null;
     m_vertsIdVec.Clear();
 }
Beispiel #6
0
        // ²âÊÔ 1 ¸ö×èµ²µã
        public List<Vertex> test1Stop(MGraph pMGraph)
        {
            StopPoint pStopPoint = null;

            pStopPoint = new StopPoint();
            pMGraph.addStopPoint(1, 0, pStopPoint);

            List<Vertex> vertList;
            if (pMGraph.isPathCacheValid(0, 8))
            {
                vertList = pMGraph.getShortestPathFromPathCache(0, 8);
            }
            else
            {
                vertList = pMGraph.getOrCreateShortestPath(0, 8);
            }

            return vertList;
        }
Beispiel #7
0
        public void addStopPoint(int nx, int ny, StopPoint pStopPoint)
        {
            int vertId = convXYToVertId(nx, ny);
            m_vertsVec[vertId].m_pStopPoint = pStopPoint;

            setNeighborInvalidByVertId(vertId);
        }