Missing changes to Condition.

This commit is contained in:
LevelX2 2012-12-23 22:20:56 +01:00
parent 43c35b282a
commit 67e219b2f7

View file

@ -1,9 +1,9 @@
package mage.abilities.condition; package mage.abilities.condition;
import java.io.Serializable;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.game.Game; import mage.game.Game;
import java.io.Serializable;
/** /**
* Interface describing condition occurrence. * Interface describing condition occurrence.
@ -12,6 +12,24 @@ import java.io.Serializable;
*/ */
public interface Condition extends Serializable { public interface Condition extends Serializable {
public enum ComparisonType {
GreaterThan(">"),
Equal("=="),
LessThan("<");
private 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. * Checks the game to see if this condition applies for the given ability.
* *