Fix: Apply Spotless
This commit is contained in:
+3
-5
@@ -185,6 +185,7 @@ public class CasinoGameController {
|
||||
private static final int NO_BET = 0;
|
||||
private boolean myDealerIconSizeBound;
|
||||
private java.util.List<String> lobbyPlayerNames = java.util.List.of();
|
||||
private static final int MAX_ANIMATED_CHIPS = 12;
|
||||
|
||||
/** Standard constructor. Used by FXML. */
|
||||
public CasinoGameController() {
|
||||
@@ -1919,7 +1920,7 @@ public class CasinoGameController {
|
||||
bottomRow.getChildren().add(chip);
|
||||
}
|
||||
|
||||
if (index < 12) {
|
||||
if (index < MAX_ANIMATED_CHIPS) {
|
||||
animateChipAppear(chip, index);
|
||||
} else {
|
||||
chip.setOpacity(CHIP_FADE_TO);
|
||||
@@ -2017,10 +2018,7 @@ public class CasinoGameController {
|
||||
*/
|
||||
private void bindChipSize(ImageView view, javafx.scene.Scene scene) {
|
||||
|
||||
view.fitHeightProperty()
|
||||
.bind(
|
||||
scene.heightProperty().multiply(CHIP_HEIGHT_RATIO)
|
||||
);
|
||||
view.fitHeightProperty().bind(scene.heightProperty().multiply(CHIP_HEIGHT_RATIO));
|
||||
|
||||
view.fitWidthProperty().bind(scene.widthProperty().multiply(CHIP_WIDTH_RATIO));
|
||||
}
|
||||
|
||||
+5
-6
@@ -11,7 +11,6 @@ import ch.unibas.dmi.dbis.cs108.casono.client.ui.lobbyui.Casinomainui;
|
||||
import ch.unibas.dmi.dbis.cs108.casono.ui.sound.SoundManager;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Consumer;
|
||||
import java.util.function.UnaryOperator;
|
||||
@@ -92,6 +91,7 @@ public class TaskbarController {
|
||||
private int lastPotSnapshot = 0;
|
||||
private int lastObservedIncrease = 0;
|
||||
private int lastRaiseIncrement = 0;
|
||||
private static final long REFRESH_DELAY_MS = 500;
|
||||
|
||||
/** Standard constructor. Used by FXML. */
|
||||
public TaskbarController() {
|
||||
@@ -1030,9 +1030,10 @@ public class TaskbarController {
|
||||
|
||||
taskbarInput.clear();
|
||||
|
||||
javafx.application.Platform.runLater(() -> {
|
||||
javafx.application.Platform.runLater(
|
||||
() -> {
|
||||
try {
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(REFRESH_DELAY_MS);
|
||||
} catch (InterruptedException e) {
|
||||
Thread.currentThread().interrupt();
|
||||
}
|
||||
@@ -1040,9 +1041,7 @@ public class TaskbarController {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables all action buttons to prevent multiple concurrent action submissions.
|
||||
*/
|
||||
/** Disables all action buttons to prevent multiple concurrent action submissions. */
|
||||
private void disableAllActionButtons() {
|
||||
if (betButton != null) {
|
||||
betButton.setDisable(true);
|
||||
|
||||
Reference in New Issue
Block a user