mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
Re-randomise decks when starting a new match from the same lobby.
This commit is contained in:
@@ -134,7 +134,7 @@ public abstract class GameLobby {
|
||||
public abstract boolean mayControl(final int index);
|
||||
public abstract boolean mayRemove(final int index);
|
||||
protected abstract IGuiGame getGui(final int index);
|
||||
protected abstract void gameStarted();
|
||||
protected abstract void onGameStarted();
|
||||
|
||||
public void addSlot() {
|
||||
final int newIndex = getNumberOfSlots();
|
||||
@@ -437,7 +437,7 @@ public abstract class GameLobby {
|
||||
}
|
||||
}
|
||||
|
||||
gameStarted();
|
||||
onGameStarted();
|
||||
}
|
||||
|
||||
public final static class GameLobbyData implements Serializable {
|
||||
|
||||
@@ -46,7 +46,9 @@ public final class LocalLobby extends GameLobby {
|
||||
return gui;
|
||||
}
|
||||
|
||||
@Override protected void gameStarted() {
|
||||
@Override protected void onGameStarted() {
|
||||
gui = null;
|
||||
// Re-randomize random decks after starting a game
|
||||
updateView(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,6 @@ public final class ClientGameLobby extends GameLobby {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override protected void gameStarted() {
|
||||
@Override protected void onGameStarted() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,6 +64,6 @@ public final class ServerGameLobby extends GameLobby {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void gameStarted() {
|
||||
protected void onGameStarted() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user