(int cntGeneric)
| 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) { |
no outgoing calls
no test coverage detected