Class CircleSearcher
- java.lang.Object
-
- com.treasure.hunt.strategy.searcher.impl.CircleSearcher
-
- All Implemented Interfaces:
Searcher<CircleHint>
public class CircleSearcher extends java.lang.Object implements Searcher<CircleHint>
-
-
Constructor Summary
Constructors Constructor Description CircleSearcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(org.locationtech.jts.geom.Point searcherStartPosition)
SearchPath
move()
Use this to perform a initial move, without a hint given.SearchPath
move(CircleHint hint)
-
-
-
Method Detail
-
init
public void init(org.locationtech.jts.geom.Point searcherStartPosition)
- Specified by:
init
in interfaceSearcher<CircleHint>
- Parameters:
searcherStartPosition
- 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
theSearchPath
the searcher did
-
move
public SearchPath move(CircleHint hint)
- Specified by:
move
in interfaceSearcher<CircleHint>
- Parameters:
hint
- the hint, theHider
gave last.- Returns:
SearchPath
theSearchPath
, this searcher chose.
-
-