forked from External/mage
there were 3 enums to compare ints, refactored to 1
This commit is contained in:
parent
813d84274a
commit
cb693b5826
339 changed files with 1263 additions and 1225 deletions
|
|
@ -1,9 +1,10 @@
|
|||
package mage.abilities.condition;
|
||||
|
||||
import java.io.Serializable;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
/**
|
||||
* Interface describing condition occurrence.
|
||||
|
|
@ -13,24 +14,6 @@ import mage.game.Game;
|
|||
@FunctionalInterface
|
||||
public interface Condition extends Serializable {
|
||||
|
||||
enum ComparisonType {
|
||||
|
||||
GreaterThan(">"),
|
||||
Equal("=="),
|
||||
LessThan("<");
|
||||
|
||||
private final String text;
|
||||
|
||||
ComparisonType(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks the game to see if this condition applies for the given ability.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue