private boolean isValidLocation ( Pathfindable mover , int stx , int sty , int dtx , int dty , boolean ignoreRef ) { boolean invalid = dtx < 0 || dty < 0 || dtx >= map . getInTileWidth ( ) || dty >= map . getInTileHeight ( ) ; if ( ! invalid && ( stx != dtx || sty != dty ) ) { invalid = mapPath . isBlocked ( mover , dtx , dty , ignoreRef ) ; } return ! invalid ; }
Check if a given location is valid for the supplied mover .