mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Huge update to the GUI codebase.
- Make match screen in gui-desktop non-singleton, allowing multiple games to be played simultaneously. - Separate global gui commands (IGuiBase) from game-specific gui commands (IGuiGame), allowing games to send their commands to the correct gui.
This commit is contained in:
@@ -854,4 +854,8 @@ public class PlayerControllerAi extends PlayerController {
|
||||
getAi().getCardMemory().clearAllRemembered();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void autoPassCancel() {
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public class GameCopier {
|
||||
newPlayers.add(clonePlayer(p));
|
||||
}
|
||||
GameRules currentRules = origGame.getRules();
|
||||
Match newMatch = new Match(currentRules, newPlayers);
|
||||
Match newMatch = new Match(currentRules, newPlayers, origGame.getView().getTitle());
|
||||
Game newGame = new Game(newPlayers, currentRules, newMatch);
|
||||
for (int i = 0; i < origGame.getPlayers().size(); i++) {
|
||||
Player origPlayer = origGame.getPlayers().get(i);
|
||||
|
||||
Reference in New Issue
Block a user