Ejemplo n.º 1
0
    } // public bool setLinkcompute_

    //@ Cell clear and set flag unprocessed before all mapping navigation event call.
    public void setClear_unprocessed()
    {
        for (int i = 0; i < 3; ++i)
        {
            m_arrfcosttoGoal_edge[i] = -1.0f;
        }

        m_iLevelToGoal  = NULL_LEVELFROMGOAL;
        m_eEdge_bestway = E_CELL_SIDEEDGE.E_EDGE_NULL;

        m_fcosttoGoal_ex  = CMATH.FLOAT_MAX;
        m_fcosttoGoal_cen = CMATH.FLOAT_MAX;

        m_eStatusCell = E_CELL_STATUS.CELL_STATUS_ROAD;

        m_bUseWaytoPortal = false;

        m_iLevelBlockroadToGoal = 0;
    }
Ejemplo n.º 2
0
    // ÇÔ¼ö:InitializeNaviCell()
    //@ Process °¢ ³×ºñ¼¿µéÀÇ ÃʱâÈ­ ÀÛ¾÷
    //@ Set all properties unprocessed and set NULL.
    public void InitializeNaviCell()
    {
        m_iSeqCell = NULL_CELL;

        for (int i = 0; i < 3; ++i)
        {
            m_arriAdjCells[i]        = NULL_CELL;
            m_arrfcosttoGoal_edge[i] = -1.0f;
        }

        m_iLevelToGoal  = NULL_LEVELFROMGOAL;
        m_eEdge_bestway = E_CELL_SIDEEDGE.E_EDGE_NULL;

        m_fcosttoGoal_ex  = CMATH.FLOAT_MAX;
        m_fcosttoGoal_cen = CMATH.FLOAT_MAX;

        m_tri_linker  = null;
        m_eStatusCell = E_CELL_STATUS.CELL_STATUS_ROAD;

        m_bUseWaytoPortal = false;
    }
Ejemplo n.º 3
0
    } // public bool setLinkcomputeCell

    public bool setLinkcomputeSimulate(int iLevelFromGoal,
                                       int iSeqCellParent)
    {
        if (E_CELL_STATUS.CELL_STATUS_BLOCK == m_eStatusCell)
        {
            return(false);
        }

        if (0 == iLevelFromGoal)        // This Cell is obviously Goal.
        {
            m_iLevelToGoal = 0;
            SetGoalCell();

            return(true);
        }

        m_eStatusCell = E_CELL_STATUS.CELL_STATUS_ROAD;



        m_iLevelToGoal = iLevelFromGoal;

        return(true);
    } // public bool setLinkcompute_
Ejemplo n.º 4
0
 public void SetRoadCell()
 {
     m_eStatusCell = E_CELL_STATUS.CELL_STATUS_ROAD;
 }
Ejemplo n.º 5
0
 public void SetBlockRoadCell()
 {
     m_eStatusCell            = E_CELL_STATUS.CELL_STATUS_BLOCKROAD;
     m_iLevelWeight_BlockRoad = DFLT_LV_BLOCKROADTYPE;
 }
Ejemplo n.º 6
0
 public void SetBlockCell()
 {
     m_eStatusCell = E_CELL_STATUS.CELL_STATUS_BLOCK;
 }
Ejemplo n.º 7
0
 public void SetGoalCell()
 {
     m_eStatusCell = E_CELL_STATUS.CELL_STATUS_GOAL;
 }