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 voidinit(org.locationtech.jts.geom.Point searcherStartPosition)SearchPathmove()Use this to perform a initial move, without a hint given.SearchPathmove(CircleHint hint)
-
-
-
Method Detail
-
init
public void init(org.locationtech.jts.geom.Point searcherStartPosition)
- Specified by:
initin interfaceSearcher<CircleHint>- Parameters:
searcherStartPosition- theSearcherstarting position, he will initialized on.
-
move
public SearchPath move()
Description copied from interface:SearcherUse this to perform a initial move, without a hint given. This is for the case, the searcher starts. (as he does normally)- Specified by:
movein interfaceSearcher<CircleHint>- Returns:
SearchPaththeSearchPaththe searcher did
-
move
public SearchPath move(CircleHint hint)
- Specified by:
movein interfaceSearcher<CircleHint>- Parameters:
hint- the hint, theHidergave last.- Returns:
SearchPaththeSearchPath, this searcher chose.
-
-