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

Method toString

forge-game/src/main/java/forge/game/cost/Cost.java:752–759  ·  view source on GitHub ↗

toString. @return a java.lang.String object.

()

Source from the content-addressed store, hash-verified

750 * @return a {@link java.lang.String} object.
751 */
752 @Override
753 public final String toString() {
754 if (this.isAbility) {
755 return this.abilityToString();
756 } else {
757 return this.spellToString(true);
758 }
759 }
760
761 // maybe add a conversion method that turns the amounts into words 1=a(n),
762 // 2=two etc.

Callers 12

getAlternativeCostsMethod · 0.95
getCostDescriptionMethod · 0.95
keywordsToTextMethod · 0.95
getAbilityTextMethod · 0.95
addSpellAbilityMethod · 0.95
CostMethod · 0.45
toSimpleStringMethod · 0.45
spellToStringMethod · 0.45
abilityToStringMethod · 0.45

Calls 2

abilityToStringMethod · 0.95
spellToStringMethod · 0.95

Tested by

no test coverage detected