mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Restart button replays the whole match
This commit is contained in:
@@ -179,6 +179,11 @@ public class MatchController {
|
|||||||
startRound();
|
startRound();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void replay() {
|
||||||
|
gamesPlayed.clear();
|
||||||
|
startRound();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: Write javadoc for this method.
|
* TODO: Write javadoc for this method.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ public class ControlWinLose {
|
|||||||
public void actionOnRestart() {
|
public void actionOnRestart() {
|
||||||
SOverlayUtils.hideOverlay();
|
SOverlayUtils.hideOverlay();
|
||||||
saveOptions();
|
saveOptions();
|
||||||
match.replayRound();
|
match.replay();
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Action performed when "quit" button is pressed in default win/lose UI. */
|
/** Action performed when "quit" button is pressed in default win/lose UI. */
|
||||||
|
|||||||
Reference in New Issue
Block a user