MCPcopy Create free account
hub / github.com/Card-Forge/forge / switchToLast

Method switchToLast

forge-gui-mobile/src/forge/Forge.java:1107–1117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1105 }
1106
1107 public static Scene switchToLast() {
1108 if (lastScene.size != 0) {
1109 storeScreen();
1110 currentScene = lastScene.get(lastScene.size - 1);
1111 currentScene.enter();
1112 sceneWasSwapped = true;
1113 lastScene.removeIndex(lastScene.size - 1);
1114 return currentScene;
1115 }
1116 return null;
1117 }
1118
1119 public static void startKeyInput(KeyInputAdapter adapter) {
1120 if (keyInputAdapter == adapter) {

Callers 12

setCurrentScreenMethod · 0.95
delayedSwitchBackMethod · 0.95
doneMethod · 0.95
backMethod · 0.95
saveMethod · 0.95
doneMethod · 0.95
afterGameEndMethod · 0.95
doneMethod · 0.95
backMethod · 0.95
doneMethod · 0.95
doneMethod · 0.95
quitSceneMethod · 0.95

Calls 3

storeScreenMethod · 0.95
getMethod · 0.65
enterMethod · 0.45

Tested by

no test coverage detected