Searched refs:isValidDirection (Results 1 – 10 of 10) sorted by relevance
/dports/games/fheroes2/fheroes2-0.9.11/src/fheroes2/world/ |
H A D | world_pathfinding.cpp | 233 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 D | maps_tiles.cpp | 934 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 D | maps.h | 54 bool isValidDirection( int32_t from, int vector );
|
H A D | maps.cpp | 226 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 D | battle_board.cpp | 626 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 D | battle_cell.cpp | 131 if ( Board::isValidDirection( dst, tailDirection ) ) { in GetReachable() 142 if ( Board::isValidDirection( dst, headDirection ) ) { in GetReachable()
|
H A D | battle_board.h | 91 static bool isValidDirection( s32, int );
|
H A D | battle_interface.cpp | 2110 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 D | heroes_move.cpp | 413 …= ( 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 D | interface_events.cpp | 94 if ( Maps::isValidDirection( hero.GetIndex(), direct ) ) { in MoveHeroFromArrowKeys()
|