Restructured Mage module

This commit is contained in:
poixen 2015-11-29 21:56:49 +01:00
parent 727d62babb
commit 46eb6c0525
1502 changed files with 11 additions and 9 deletions

View file

@ -0,0 +1,23 @@
package mage.constants;
/**
*
* @author North
*/
public enum Zone {
HAND, GRAVEYARD, LIBRARY, BATTLEFIELD, STACK, EXILED, ALL, OUTSIDE, PICK, COMMAND;
public boolean match(Zone zone) {
return (this == zone || this == ALL || zone == ALL);
}
@Override
public String toString() {
if (this.equals(EXILED)) {
return "exile zone";
}
return super.toString(); //To change body of generated methods, choose Tools | Templates.
}
}