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

Method getRadius

forge-gui-mobile/src/forge/assets/ImageCache.java:488–498  ·  view source on GitHub ↗
(Texture t)

Source from the content-addressed store, hash-verified

486 }
487
488 public int getRadius(Texture t) {
489 if (t == null)
490 return 20;
491 ImageRecord record = imageRecord.get().get(t.toString());
492 if (record == null)
493 return 20;
494 Integer i = record.cardRadius;
495 if (i == null)
496 return 20;
497 return i;
498 }
499
500 public boolean isFullBorder(Texture image) {
501 if (image == null)

Callers 4

getImageMethod · 0.95
drawCardRoundRectMethod · 0.80
drawMethod · 0.80
drawCardMethod · 0.80

Calls 2

getMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected