} // 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; }
// ÇÔ¼ö: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; }
} // 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_
public void SetRoadCell() { m_eStatusCell = E_CELL_STATUS.CELL_STATUS_ROAD; }
public void SetBlockRoadCell() { m_eStatusCell = E_CELL_STATUS.CELL_STATUS_BLOCKROAD; m_iLevelWeight_BlockRoad = DFLT_LV_BLOCKROADTYPE; }
public void SetBlockCell() { m_eStatusCell = E_CELL_STATUS.CELL_STATUS_BLOCK; }
public void SetGoalCell() { m_eStatusCell = E_CELL_STATUS.CELL_STATUS_GOAL; }