Skip to content

Commit

Permalink
Convert non-javadoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Max committed Apr 1, 2024
1 parent a808975 commit 23b0874
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ch/epfl/chacun/GameState.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public record GameState(List<PlayerColor> players, TileDecks tileDecks, Tile til
* The id of the tile containing the pit trap
*/
private static final int PIT_TRAP_ID = 92;

/**
* The id of the tile containing the raft
*/
Expand Down Expand Up @@ -114,7 +115,6 @@ public int freeOccupantsCount(PlayerColor player, Occupant.Kind kind) {
public Set<Occupant> lastTilePotentialOccupants() {
Preconditions.checkArgument(!board.equals(Board.EMPTY));
PlacedTile lastPlacedTile = board.lastPlacedTile();

Set<Occupant> potentialOccupants = lastPlacedTile.potentialOccupants();
potentialOccupants.removeIf(occupant -> {
Zone zone = lastPlacedTile.zoneWithId(occupant.zoneId());
Expand Down
19 changes: 15 additions & 4 deletions src/ch/epfl/chacun/ZonePartitions.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,24 @@ public record ZonePartitions(ZonePartition<Zone.Forest> forests, ZonePartition<Z
* Represents the builder of zone partitions.
*/
public static final class Builder {
// The builder of the forests partition
/**
* The builder of the forests partition
*/
private final ZonePartition.Builder<Zone.Forest> forests;
// The builder of the meadows partition

/**
* The builder of the meadows partition
*/
private final ZonePartition.Builder<Zone.Meadow> meadows;
// The builder of the rivers partition

/**
* The builder of the rivers partition
*/
private final ZonePartition.Builder<Zone.River> rivers;
// The builder of the river systems partition

/**
* The builder of the river systems partition
*/
private final ZonePartition.Builder<Zone.Water> riverSystems;

/**
Expand Down

0 comments on commit 23b0874

Please sign in to comment.