Searched refs:straightDirection (Results 1 – 2 of 2) sorted by relevance
159 DIRECTION_45 straightDirection; in GetPosture() local163 straightDirection = DIRECTION_45( straight.CSegment( 0 ) ); in GetPosture()169 newDirection = straightDirection; in GetPosture()171 newDirection = m_direction.IsDiagonal() ? diagDirection : straightDirection; in GetPosture()188 if( straightDirection == m_lastSegDirection ) in GetPosture()190 if( m_direction != straightDirection ) in GetPosture()193 straightDirection.Format() ) ); in GetPosture()196 m_direction = straightDirection; in GetPosture()200 if( m_direction != straightDirection ) in GetPosture()222 DIRECTION_45 candidate = m_direction.IsDiagonal() ? straightDirection in GetPosture()[all …]
182 …int straightDirection = 0; //straight direction: -1: backward; 1:foreward; while foreward… in updateMove() local208 straightDirection = xDirection; in updateMove()220 straightDirection = yDirection; in updateMove()231 if(straightDirection*deltaStraightCellCenter >= 0) in updateMove()252 …if(deltaStraightCellCenter * straightDirection > 0 && !m_arena->getCell(moveStartRow, moveStartCol… in updateMove()283 …if(deltaPerpendicularCellCenter != 0 && (straightDirection * deltaStraightCellCenter) < 0) //not … in updateMove()306 …if(straightDirection * deltaStraightCellCenter < 0) //the cell center to move is in the next c… in updateMove()308 deltaStraightMove += straightDirection * Granatier::CellSize; in updateMove()309 deltaAskedMove -= straightDirection * Granatier::CellSize; in updateMove()332 deltaStraightMove += straightDirection * Granatier::CellSize; in updateMove()[all …]