Skip to content

Commit b2412cc

Browse files
committed
more docs
1 parent 983af58 commit b2412cc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/ch/epfl/chacun/gui/ActionUI.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public static Node create(ObservableValue<List<String>> actionsO, Consumer<Strin
7373
*/
7474
private static String actionsTextRepresentation(List<String> actions) {
7575
int actionSize = actions.size();
76-
int actionIdxFirst = Math.max(0, actionSize - NUMBER_OF_ACTIONS);
77-
return IntStream.range(actionIdxFirst, actionSize)
76+
int firstActionIdx = Math.max(0, actionSize - NUMBER_OF_ACTIONS);
77+
return IntStream.range(firstActionIdx, actionSize)
7878
.mapToObj(i -> STR."\{i + 1}:\{actions.get(i)}")
7979
.collect(Collectors.joining(", "));
8080
}

src/ch/epfl/chacun/gui/PlayersUI.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
* @author Simon Lefort (371918)
2525
*/
2626
public final class PlayersUI {
27-
27+
/**
28+
* the opacity of an occupant when it is placed on the board
29+
*/
2830
private static final double PLACED_OCCUPANT_OPACITY = .1;
2931
private static final double HELD_OCCUPANT_OPACITY = 1;
3032
private static final int PLAYER_CIRCLE_RADIUS = 5;

0 commit comments

Comments
 (0)