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

Method getInstance

forge-gui-mobile/src/forge/assets/ImageCache.java:79–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 private Set<String> cardsLoaded;
78 private Queue<String> syncQ;
79 public static ImageCache getInstance() {
80 if (imageCache == null) {
81 imageCache = new ImageCache();
82 imageCache.initCache(Forge.cacheSize);
83 }
84 return imageCache;
85 }
86 private void initCache(int capacity) {
87 //override maxCardCapacity
88 maxCardCapacity = capacity;

Callers 15

switchToClassicMethod · 0.95
switchToAdventureMethod · 0.95
setCurrentScreenMethod · 0.95
renderMethod · 0.95
fetchMethod · 0.95
getImageMethod · 0.95
drawMethod · 0.95
clearImageCacheMethod · 0.95
drawCardRoundRectMethod · 0.95
SettingsSceneMethod · 0.95
quitSceneMethod · 0.95
actMethod · 0.95

Calls 1

initCacheMethod · 0.80

Tested by 1