Class NaiveAngleSearcher
- java.lang.Object
-
- com.treasure.hunt.strategy.searcher.impl.NaiveAngleSearcher
-
-
Constructor Summary
Constructors Constructor Description NaiveAngleSearcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(org.locationtech.jts.geom.Point startPosition)SearchPathmove()Use this to perform a initial move, without a hint given.SearchPathmove(AngleHint angleHint)
-
-
-
Method Detail
-
init
public void init(org.locationtech.jts.geom.Point startPosition)
-
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<AngleHint>- Returns:
SearchPath, containing only the starting position.
-
move
public SearchPath move(AngleHint angleHint)
- Specified by:
movein interfaceSearcher<AngleHint>- Parameters:
angleHint- the hint, theHidergave last.- Returns:
- A
SearchPath1 length unit trough the middle of the AngleHint.
-
-