Class NaiveCircleSearcher
- java.lang.Object
-
- com.treasure.hunt.strategy.searcher.impl.NaiveCircleSearcher
-
- All Implemented Interfaces:
Searcher<CircleHint>
public class NaiveCircleSearcher extends java.lang.Object implements Searcher<CircleHint>
This type ofSearcher
always goes to the center of anCircleHint
.
-
-
Constructor Summary
Constructors Constructor Description NaiveCircleSearcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(org.locationtech.jts.geom.Point startPosition)
SearchPath
move()
Use this to perform a initial move, without a hint given.SearchPath
move(CircleHint circleHint)
-
-
-
Method Detail
-
init
public void init(org.locationtech.jts.geom.Point startPosition)
- Specified by:
init
in interfaceSearcher<CircleHint>
- Parameters:
startPosition
- theSearcher
starting position, he will initialized on.
-
move
public SearchPath move()
Description copied from interface:Searcher
Use this to perform a initial move, without a hint given. This is for the case, the searcher starts. (as he does normally)- Specified by:
move
in interfaceSearcher<CircleHint>
- Returns:
SearchPath
, containing only the starting position.
-
move
public SearchPath move(CircleHint circleHint)
- Specified by:
move
in interfaceSearcher<CircleHint>
- Parameters:
circleHint
- the hint, theHider
gave last- Returns:
SearchPath
, to the center of the givenCircleHint
-
-