forked from External/mage
changed enum comparison to ==.
isDependentTo returns empty set rather than null
This commit is contained in:
parent
297203dab5
commit
972ed6a3f2
61 changed files with 159 additions and 195 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package mage.constants;
|
||||
|
||||
import mage.game.turn.Phase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author North
|
||||
|
|
@ -33,6 +35,14 @@ public enum PhaseStep {
|
|||
this.stepText = stepText;
|
||||
}
|
||||
|
||||
public boolean isBefore(PhaseStep other){
|
||||
return this.getIndex()<other.getIndex();
|
||||
}
|
||||
|
||||
public boolean isAfter(PhaseStep other){
|
||||
return this.getIndex()>other.getIndex();
|
||||
}
|
||||
|
||||
public int getIndex() {
|
||||
return index;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue