[Mobile] add Experimental Rollback Phase

This commit is contained in:
Anthony Calosa
2021-03-14 11:57:20 +08:00
parent 84aaccc3da
commit 68ecf41511
17 changed files with 95 additions and 7 deletions

View File

@@ -51,6 +51,7 @@ import forge.ImageCache;
import forge.LobbyPlayer;
import forge.Singletons;
import forge.StaticData;
import forge.ai.GameState;
import forge.assets.FSkinProp;
import forge.card.CardStateName;
import forge.control.KeyboardShortcuts;
@@ -620,6 +621,11 @@ public final class CMatchUI
});
}
@Override
public GameState getGamestate() {
return null;
}
@Override
public List<JMenu> getMenus() {
return menus.getMenus();
@@ -771,7 +777,7 @@ public final class CMatchUI
}
@Override
public void updatePhase() {
public void updatePhase(boolean saveState) {
final PlayerView p = getGameView().getPlayerTurn();
final PhaseType ph = getGameView().getPhase();
// this should never happen, but I've seen it periodically... so, need to get to the bottom of it