Fixed missing copy statements of cardAttribute in game state.

This commit is contained in:
LevelX2 2015-06-14 23:22:38 +02:00
parent 35654a5ca8
commit 324188a86e
3 changed files with 12 additions and 1 deletions

View file

@ -21,6 +21,14 @@ public class CardAttribute implements Serializable {
public CardAttribute(Card card) {
color = card.getColor(null).copy();
}
public CardAttribute(CardAttribute cardAttribute) {
this.color = cardAttribute.color;
}
public CardAttribute copy() {
return new CardAttribute(this);
}
public ObjectColor getColor() {
return color;