move zoneChangeCounter to GameState - Card is now immutable

This commit is contained in:
betasteward 2015-03-29 08:30:31 -04:00
parent 45aa5f675c
commit 6405c8d2f0
101 changed files with 899 additions and 257 deletions

View file

@ -873,10 +873,15 @@ public class Spell implements StackObject, Card {
}
@Override
public void updateZoneChangeCounter() {
public void updateZoneChangeCounter(Game game) {
throw new UnsupportedOperationException("Unsupported operation");
}
@Override
public void setZoneChangeCounter(int value, Game game) {
throw new UnsupportedOperationException("Unsupported operation");
}
@Override
public Ability getStackAbility() {
return this.ability;
@ -888,8 +893,8 @@ public class Spell implements StackObject, Card {
}
@Override
public int getZoneChangeCounter() {
return card.getZoneChangeCounter();
public int getZoneChangeCounter(Game game) {
return card.getZoneChangeCounter(game);
}
@Override