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

Method dispose

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

Source from the content-addressed store, hash-verified

1045 }
1046
1047 @Override
1048 public void dispose() {
1049 if (currentScreen != null) {
1050 currentScreen.onClose(null);
1051 currentScreen = null;
1052 }
1053 FOverlay.hideAll();
1054 Dscreens.clear();
1055 graphics.dispose();
1056 SoundSystem.instance.dispose();
1057 MapStage.getInstance().disposeWorld();
1058 try {
1059 ExceptionHandler.unregisterErrorHandling();
1060 lastPreview.dispose();
1061 assets.dispose();
1062 AdventureScreen.dispose();
1063 } catch (Exception e) {
1064 }
1065 }
1066 /** Retrieve assets.
1067 */
1068 public static Assets getAssets() {

Callers

nothing calls this directly

Calls 8

hideAllMethod · 0.95
getInstanceMethod · 0.95
disposeMethod · 0.95
disposeWorldMethod · 0.80
disposeMethod · 0.65
onCloseMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected