Class HideAndSeekGameEngine
- java.lang.Object
-
- com.treasure.hunt.game.GameEngine
-
- com.treasure.hunt.game.mods.hideandseek.HideAndSeekGameEngine
-
public class HideAndSeekGameEngine extends GameEngine
In this modification, the hider may reset the treasure location in each move, after theSearcher
did hisSearchPath
.
-
-
Field Summary
-
Fields inherited from class com.treasure.hunt.game.GameEngine
finished, firstMove, hider, initialSearcherPoint, lastHint, lastSearchPath, SCANNING_DISTANCE, searcher, searcherPos, treasurePos
-
-
Constructor Summary
Constructors Constructor Description HideAndSeekGameEngine(Searcher searcher, Hider hider)
HideAndSeekGameEngine(Searcher searcher, Hider hider, org.locationtech.jts.geom.Point point)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
hiderMove()
Let theGameEngine.hider
reset the treasure position and give hisHint
.-
Methods inherited from class com.treasure.hunt.game.GameEngine
cutSearchPath, getHider, getSearcher, getStatistics, init, isFinished, located, move, searcherMove, verifyHint, verifyHint, verifyHint, verifySearchPath
-
-
-
-
Method Detail
-
hiderMove
protected void hiderMove()
Let theGameEngine.hider
reset the treasure position and give hisHint
.- Overrides:
hiderMove
in classGameEngine
-
-