SetCardColor and SetCardSubtype effects.

This commit is contained in:
magenoxx 2011-07-31 15:16:12 +04:00
parent 9db0651220
commit 6bc1846620
3 changed files with 185 additions and 0 deletions

View file

@ -163,6 +163,25 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
sb.append("G");
return sb.toString();
}
public String getDescription() {
StringBuilder sb = new StringBuilder();
if (getColorCount() > 1) {
return "multicolored";
} else {
if (white)
return "white";
if (blue)
return "blue";
if (black)
return "black";
if (red)
return "red";
if (green)
return "green";
}
return "colorless";
}
@Override
public boolean equals(Object color) {