Class RandomCircleHintHider

    • 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)
      CircleHint move​(SearchPath searchPath)
      If it is the first time, a CircleHint is requested, this returns a random CircleHint with a center Coordinate lying in [-MAX_X,MAX_X)x[-MAX_Y,MAX_Y), with a radius being of [length ((0,0),(x,y)), MAX_RADIUS).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomCircleHintHider

        public RandomCircleHintHider()
    • Method Detail

      • init

        public void init​(org.locationtech.jts.geom.Point searcherStartPosition)
        Specified by:
        init in interface Hider<CircleHint>
        Parameters:
        searcherStartPosition - the Searcher starting position, he will initialized on.
      • move

        public CircleHint move​(SearchPath searchPath)
        If it is the first time, a CircleHint is requested, this returns a random CircleHint with a center Coordinate lying in [-MAX_X,MAX_X)x[-MAX_Y,MAX_Y), with a radius being of [length ((0,0),(x,y)), MAX_RADIUS).

        If it is not the first time, a CircleHint is requested, this returns a random CircleHint with a center lying in the previous given CircleHint with a valid radius.

        Specified by:
        move in interface Hider<CircleHint>
        Parameters:
        searchPath - the SearchPath, the Searcher did last
        Returns:
        randomly generated circle
      • getTreasureLocation

        public org.locationtech.jts.geom.Point getTreasureLocation()
        Specified by:
        getTreasureLocation in interface Hider<CircleHint>
        Returns:
        the current treasure location