forked from External/mage
* Mind's Desire - improved exile windows;
This commit is contained in:
parent
ba1c6de2cd
commit
08616b6ec9
4 changed files with 46 additions and 25 deletions
|
|
@ -1,13 +1,10 @@
|
|||
|
||||
|
||||
package mage.game;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.cards.CardsImpl;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class ExileZone extends CardsImpl {
|
||||
|
|
@ -15,16 +12,22 @@ public class ExileZone extends CardsImpl {
|
|||
private UUID id;
|
||||
private String name;
|
||||
private boolean hidden;
|
||||
private boolean cleanupOnEndTurn = false; // moved cards from that zone to default on end of turn (to cleanup exile windows)
|
||||
|
||||
public ExileZone(UUID id, String name) {
|
||||
this(id, name, false);
|
||||
}
|
||||
|
||||
public ExileZone(UUID id, String name, boolean hidden) {
|
||||
this(id, name, false, false);
|
||||
}
|
||||
|
||||
public ExileZone(UUID id, String name, boolean hidden, boolean cleanupOnEndTurn) {
|
||||
super();
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.hidden = hidden;
|
||||
this.cleanupOnEndTurn = cleanupOnEndTurn;
|
||||
}
|
||||
|
||||
public ExileZone(final ExileZone zone) {
|
||||
|
|
@ -32,6 +35,7 @@ public class ExileZone extends CardsImpl {
|
|||
this.id = zone.id;
|
||||
this.name = zone.name;
|
||||
this.hidden = zone.hidden;
|
||||
this.cleanupOnEndTurn = zone.cleanupOnEndTurn;
|
||||
}
|
||||
|
||||
public UUID getId() {
|
||||
|
|
@ -46,6 +50,14 @@ public class ExileZone extends CardsImpl {
|
|||
return hidden;
|
||||
}
|
||||
|
||||
public boolean isCleanupOnEndTurn() {
|
||||
return cleanupOnEndTurn;
|
||||
}
|
||||
|
||||
public void setCleanupOnEndTurn(boolean cleanupOnEndTurn) {
|
||||
this.cleanupOnEndTurn = cleanupOnEndTurn;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExileZone copy() {
|
||||
return new ExileZone(this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue