checking in infrastructure changes to support a refactor of the code dealing with card colors

Nothing is hooked up, so there should be no functional change in Forge at all.

basics:
1) support to make Color an Enum (Colorless is not included, use card.isColorless() instead
2) make color checking a part of Card.java instead of using CardUtil.getColors(card)
3) add getConvertedManaCost functions directly in Card.java (Note: CardUtil will likely still need a copy of some of this code to get the converted mana cost of spell abilities
This commit is contained in:
jendave
2011-08-06 04:21:08 +00:00
parent 17de396d2a
commit 3456225054
7 changed files with 353 additions and 18 deletions

View File

@@ -19838,6 +19838,8 @@ public class CardFactory implements NewConstants {
c.setType(sim.getType());
c.setText(sim.getSpellText());
c.setManaCost(sim.getManaCost());
//for Color refactor
//c.setBaseColors(sim.getBaseColors());
return c;
}// copyStats()