AI Sideboarding Mode toggle as a Preferences option (#5136)

* - Initial commit for the AI sideboarding mode toggle.

* - Tweak the parameter value to correspond to the enum.

* - Consistency.
This commit is contained in:
Agetian
2024-04-25 14:19:47 +03:00
committed by GitHub
parent c3a9ec062c
commit a9c97aac2c
20 changed files with 103 additions and 43 deletions

View File

@@ -11,6 +11,7 @@ public class GameRules {
private int gamesToWinMatch = 2;
private boolean playForAnte = false;
private boolean matchAnteRarity = false;
private boolean AISideboardingEnabled = false;
private boolean sideboardForAI = false;
private final Set<GameType> appliedVariants = EnumSet.noneOf(GameType.class);
@@ -77,6 +78,14 @@ public class GameRules {
sideboardForAI = sideboard;
}
public boolean getAISideboardingEnabled() {
return AISideboardingEnabled;
}
public void setAISideboardingEnabled(final boolean aiSideboarding) {
AISideboardingEnabled = aiSideboarding;
}
public int getGamesToWinMatch() {
return gamesToWinMatch;
}