Class FixedTreasureHider

    • Constructor Detail

      • FixedTreasureHider

        public FixedTreasureHider()
    • Method Detail

      • rateHint

        protected double rateHint​(AngleHintStatistic ahs)
        Description copied from class: StatisticalHider
        Rates the Given Hint with a custom function, saves the result in the AngleHintStatistic - Wrapper and returns the result
        Specified by:
        rateHint in class StatisticalHider
        Parameters:
        ahs - The AngleHint - Wrapper , in which the result is saved
        Returns:
        the rating of the hint
      • getTreasureLocation

        public org.locationtech.jts.geom.Point getTreasureLocation()
        This method will be invoked at the start of the Game. it returns the initial treasure location. Since hider does not move the treasure, any further calls to this method will return the same result.
        Specified by:
        getTreasureLocation in interface Hider<AngleHint>
        Overrides:
        getTreasureLocation in class StatisticalHider
        Returns:
        the point the treasure is located at