private CoordTile getFreeTileAround ( Pathfindable mover , int tx , int ty , int tw , int th , int radius , Integer id ) { for ( int ctx = tx - radius ; ctx <= tx + radius ; ctx ++ ) { for ( int cty = ty - radius ; cty <= ty + radius ; cty ++ ) { if ( isAreaAvailable ( mover , ctx , cty , tw , th , id ) ) { return new CoordTile ( ctx , cty ) ; } } } return null ; }
Search a free area from this location .