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

Method switchScene

forge-gui-mobile/src/forge/Forge.java:1071–1073  ·  view source on GitHub ↗
(Scene newScene)

Source from the content-addressed store, hash-verified

1069 return ((Forge)Gdx.app.getApplicationListener()).assets;
1070 }
1071 public static boolean switchScene(Scene newScene) {
1072 return switchScene(newScene, false);
1073 }
1074 public static boolean switchScene(Scene newScene, boolean skipPreview) {
1075 if (newScene instanceof RewardScene || newScene instanceof SpellSmithScene || newScene instanceof DeckSelectScene || newScene instanceof PlayerStatisticScene || newScene instanceof QuestLogScene) {
1076 if (!(currentScene instanceof ForgeScene || skipPreview)) //prevent overwriting the last preview if last scene is instance of ForgeScene

Callers 15

statusMethod · 0.95
backMethod · 0.95
startMethod · 0.95
backMethod · 0.95
enterMethod · 0.95
loadSaveMethod · 0.95
saveMethod · 0.95
questsMethod · 0.95
backMethod · 0.95
editDeckMethod · 0.95
backMethod · 0.95

Calls 10

getCurrentSaveMethod · 0.95
storeScreenMethod · 0.95
clearTransitionScreenMethod · 0.95
createPreviewMethod · 0.80
containsMethod · 0.65
indexOfMethod · 0.65
addMethod · 0.65
leaveMethod · 0.45
setSizeMethod · 0.45
enterMethod · 0.45

Tested by

no test coverage detected