Skip to content

Commit

Permalink
javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianRec committed Dec 21, 2019
1 parent a52d650 commit 0117ee8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/treasure/hunt/game/GameEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@ protected void verifyMovement(Movement movement, Point initialSearcherPosition)

/**
* TODO implement:
* AngleHints must be correct
* AngleHints must be of angle [0, 180] !?
* CircleHints must contain each other !?
* Verifies whether the {@link Hint} {@code hint} given by the {@link Hider} followed the rules.
Expand Down
9 changes: 6 additions & 3 deletions src/main/java/com/treasure/hunt/game/GameManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
*/
@Slf4j
public class GameManager {

/**
* A thread that is invoked by {@link GameManager#beat(ReadOnlyObjectProperty)} and stopped by {@link GameManager#stopBeat()}.
* He executes {@link GameManager#move(int)} in a given interval.
*/
private Thread beatThread;

@Getter
Expand Down Expand Up @@ -220,7 +223,7 @@ public BooleanProperty getGameFinishedProperty() {
}

/**
* @return true if the shown step is the most up to date one
* @return {@code true}, if the shown step is the most up to date one. {@code false}, otherwise.
*/
public boolean latestStepViewed() {
return moves.size() - 1 == viewIndex.get();
Expand All @@ -239,7 +242,7 @@ public BooleanBinding stepBackwardImpossibleBinding() {
}

/**
* @return true if the shown step is the first one
* @return {@code true}, if the shown step is the first one. {@code false}, otherwise.
*/
public boolean isFirstStepShown() {
return stepBackwardImpossibleBinding().getValue();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

/**
* In this modification, the hider may reset the
* treasure location in each move.
* treasure location in each move,
* after the {@link Searcher} did his {@link com.treasure.hunt.strategy.searcher.Movement}.
*
* @author dorianreineccius
*/
Expand All @@ -18,8 +19,7 @@ public HideAndSeekGameEngine(Searcher searcher, Hider hider) {
}

/**
* In this modification, the {@link GameEngine#hider} can reset the treasure position
* and then gives his hint
* Let the {@link GameEngine#hider} reset the treasure position and give his {@link com.treasure.hunt.strategy.hint.Hint}.
*/
protected void moveHider() {
treasurePos = hider.getTreasureLocation(); // Difference between GameEngine and HideAndSeekGameEngine.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public Coordinate computeIntersectionOnBoundary(LineSegment line, LineSegment se


/**
* Computes the 2 Intersections between the bounding circle and the current hint, then
* Merges the resulting Polygon and the remaining possible Area
* to the new possible Area
* Computes the 2 intersections between the bounding circle and the current hint,
* then merges the resulting polygon and the remaining possible area
* to the new possible area
*
* @param hint The hint to integrate
* @return TODO
Expand Down

0 comments on commit 0117ee8

Please sign in to comment.