Package com.treasure.hunt.strategy.hider
Interface Hider<T extends Hint>
-
- Type Parameters:
T
- The type ofHint
, this hider can handle.
- All Known Subinterfaces:
HideAndSeekHider<T>
- All Known Implementing Classes:
BadHintHider
,FixedTreasureHider
,HalfPlaneAdapter_FixedTreasure
,HalfPlaneAdapter_MobileTreasure
,HorizontalHalfPlaneHintHider
,MobileTreasureHider
,RandomAngleHintHider
,RandomCircleHintHider
,RandomHalfPlaneHintHider
,RightHandAngleHintHider
,UserControlledAngleHintHider
public interface Hider<T extends Hint>
An algorithm, hiding a treasure and giving a searcherHint
-objects, such he can find the treasure.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.locationtech.jts.geom.Point
getTreasureLocation()
void
init(org.locationtech.jts.geom.Point searcherStartPosition)
T
move(SearchPath searchPath)
-
-
-
Method Detail
-
init
void init(org.locationtech.jts.geom.Point searcherStartPosition)
- Parameters:
searcherStartPosition
- theSearcher
starting position, he will initialized on.
-
move
T move(SearchPath searchPath)
- Parameters:
searchPath
- theSearchPath
, theSearcher
did last- Returns:
- T a (new) hint.
-
getTreasureLocation
org.locationtech.jts.geom.Point getTreasureLocation()
- Returns:
- the current treasure location
-
-