move CardHelper::getColor to CardView::getColorText

This commit is contained in:
ingmargoudt 2017-04-06 22:11:57 +02:00
parent 63df7f65a7
commit d60e01d497
4 changed files with 15 additions and 15 deletions

View file

@ -961,4 +961,15 @@ public class CardView extends SimpleCardView {
return cardTypes.contains(CardType.CREATURE);
}
public String getColorText() {
if (getColor().getColorCount() == 0) return "Colorless";
else if (getColor().getColorCount() > 1) return "Gold";
else if (getColor().isBlack()) return "Black";
else if (getColor().isBlue()) return "Blue";
else if (getColor().isWhite()) return "White";
else if (getColor().isGreen()) return "Green";
else if (getColor().isRed()) return "Red";
return "";
}
}