Class RightHandAngleHintHider
- java.lang.Object
-
- com.treasure.hunt.strategy.hider.impl.RightHandAngleHintHider
-
public class RightHandAngleHintHider extends java.lang.Object implements Hider<AngleHint>
A type ofHider
, generating a validAngleHint
, which contains an angle of the providedPreferenceService.HintSize_Preference
(standard isMath.PI
) with his right wing pointing at the treasure.
-
-
Constructor Summary
Constructors Constructor Description RightHandAngleHintHider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.locationtech.jts.geom.Point
getTreasureLocation()
void
init(org.locationtech.jts.geom.Point searcherStartPosition)
AngleHint
move(SearchPath searchPath)
-
-
-
Method Detail
-
getTreasureLocation
public org.locationtech.jts.geom.Point getTreasureLocation()
- Specified by:
getTreasureLocation
in interfaceHider<AngleHint>
- Returns:
- A random treasure location via
JTSUtils.shuffleTreasure()
.
-
init
public void init(org.locationtech.jts.geom.Point searcherStartPosition)
-
move
public AngleHint move(SearchPath searchPath)
- Specified by:
move
in interfaceHider<AngleHint>
- Parameters:
searchPath
- theSearchPath
, theSearcher
did last- Returns:
- a valid
AngleHint
, which contains an angle of the providedPreferenceService.HintSize_Preference
(standard isMath.PI
) with his right wing pointing at the treasure.
-
-