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

Method get

forge-core/src/main/java/forge/card/mana/ManaCost.java:56–65  ·  view source on GitHub ↗
(int cntGeneric)

Source from the content-addressed store, hash-verified

54 public static final ManaCost FOUR = new ManaCost(4);
55
56 public static ManaCost get(int cntGeneric) {
57 switch (cntGeneric) {
58 case 0: return ZERO;
59 case 1: return ONE;
60 case 2: return TWO;
61 case 3: return THREE;
62 case 4: return FOUR;
63 }
64 return cntGeneric > 0 ? new ManaCost(cntGeneric) : NO_COST;
65 }
66
67 // pass mana cost parser here
68 private ManaCost(int cmc) {

Callers 4

adjustMethod · 0.95
CostMethod · 0.95
helpPayForAssistSpellMethod · 0.95
helpPayForAssistSpellMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected