Home
last modified time | relevance | path

Searched refs:isValidDirection (Results 1 – 10 of 10) sorted by relevance

/dports/games/fheroes2/fheroes2-0.9.11/src/fheroes2/world/
H A Dworld_pathfinding.cpp233 if ( Maps::isValidDirection( currentNodeIdx, directions[i] ) ) { in checkAdjacentNodes()
506 if ( Maps::isValidDirection( currentNodeIdx, directions[i] ) ) { in getFogDiscoveryTile()
537 if ( Maps::isValidDirection( start, directions[i] ) ) { in getNeareastTileToMove()
562 …const bool leftSideUnreachable = !Maps::isValidDirection( start, Direction::LEFT ) || _cache[start… in isHeroPossiblyBlockingWay()
563 …const bool rightSideUnreachable = !Maps::isValidDirection( start, Direction::RIGHT ) || _cache[sta… in isHeroPossiblyBlockingWay()
568 …const bool topSideUnreachable = !Maps::isValidDirection( start, Direction::TOP ) || _cache[start -… in isHeroPossiblyBlockingWay()
569 …const bool bottomSideUnreachable = !Maps::isValidDirection( start, Direction::BOTTOM ) || _cache[s… in isHeroPossiblyBlockingWay()
608 if ( Maps::isValidDirection( currentNode, directions[i] ) ) { in getObjectsOnTheWay()
/dports/games/fheroes2/fheroes2-0.9.11/src/fheroes2/maps/
H A Dmaps_tiles.cpp934 if ( !Maps::isValidDirection( _index, Direction::LEFT ) ) { in updatePassability()
937 if ( !Maps::isValidDirection( _index, Direction::RIGHT ) ) { in updatePassability()
940 if ( !Maps::isValidDirection( _index, Direction::TOP ) ) { in updatePassability()
943 if ( !Maps::isValidDirection( _index, Direction::BOTTOM ) ) { in updatePassability()
1988 if ( Maps::isValidDirection( _index, Direction::LEFT ) ) in RemoveObjectSprite()
1997 if ( Maps::isValidDirection( _index, Direction::LEFT ) ) in RemoveObjectSprite()
2017 if ( Maps::isValidDirection( _index, Direction::LEFT ) ) { in RemoveJailSprite()
2022 if ( Maps::isValidDirection( left, Direction::LEFT ) ) in RemoveJailSprite()
2027 if ( Maps::isValidDirection( _index, Direction::TOP ) ) { in RemoveJailSprite()
2038 if ( Maps::isValidDirection( top, Direction::LEFT ) ) { in RemoveJailSprite()
[all …]
H A Dmaps.h54 bool isValidDirection( int32_t from, int vector );
H A Dmaps.cpp226 bool Maps::isValidDirection( int32_t from, int vector ) in isValidDirection() function in Maps
/dports/games/fheroes2/fheroes2-0.9.11/src/fheroes2/battle/
H A Dbattle_board.cpp626 bool Battle::Board::isValidDirection( s32 index, int dir ) in isValidDirection() function in Battle::Board
992 if ( isValidDirection( position, dir ) ) { in GetCell()
1008 if ( isValidDirection( center, LEFT ) ) in GetMoveWideIndexes()
1010 if ( isValidDirection( center, RIGHT ) ) in GetMoveWideIndexes()
1012 if ( isValidDirection( center, TOP_LEFT ) ) in GetMoveWideIndexes()
1014 if ( isValidDirection( center, BOTTOM_LEFT ) ) in GetMoveWideIndexes()
1018 if ( isValidDirection( center, LEFT ) ) in GetMoveWideIndexes()
1020 if ( isValidDirection( center, RIGHT ) ) in GetMoveWideIndexes()
1022 if ( isValidDirection( center, TOP_RIGHT ) ) in GetMoveWideIndexes()
1024 if ( isValidDirection( center, BOTTOM_RIGHT ) ) in GetMoveWideIndexes()
[all …]
H A Dbattle_cell.cpp131 if ( Board::isValidDirection( dst, tailDirection ) ) { in GetReachable()
142 if ( Board::isValidDirection( dst, headDirection ) ) { in GetReachable()
H A Dbattle_board.h91 static bool isValidDirection( s32, int );
H A Dbattle_interface.cpp2110 if ( cursor && Board::isValidDirection( index_pos, dir ) ) { in GetBattleCursor()
2682 if ( enemy && Board::isValidDirection( index, dir ) ) { in MouseLeftClickBoardAction()
/dports/games/fheroes2/fheroes2-0.9.11/src/fheroes2/heroes/
H A Dheroes_move.cpp413 …= ( isHeroMovedHalfOfCell && Maps::isValidDirection( GetIndex(), direction ) ) ? Maps::GetDirectio… in isInDeepOcean()
544 if ( Maps::isValidDirection( centerIndex, Direction::BOTTOM ) ) { in SetRedrawIndexes()
555 … && Direction::BOTTOM_RIGHT != direction && Maps::isValidDirection( centerIndex, direction ) ) { in SetRedrawIndexes()
557 if ( Maps::isValidDirection( directionIndex, Direction::BOTTOM ) ) { in SetRedrawIndexes()
566 …ection::BOTTOM != direction && Direction::TOP != direction && Maps::isValidDirection( centerIndex,… in SetRedrawIndexes()
626 if ( Maps::isValidDirection( centerIndex, Direction::TOP ) ) in RedrawTop()
630 …ection::BOTTOM != direction && Direction::TOP != direction && Maps::isValidDirection( centerIndex,… in RedrawTop()
632 … && Maps::isValidDirection( Maps::GetDirectionIndex( centerIndex, direction ), Direction::TOP ) ) { in RedrawTop()
/dports/games/fheroes2/fheroes2-0.9.11/src/fheroes2/gui/
H A Dinterface_events.cpp94 if ( Maps::isValidDirection( hero.GetIndex(), direct ) ) { in MoveHeroFromArrowKeys()