mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Missing changes to Condition.
This commit is contained in:
parent
43c35b282a
commit
67e219b2f7
1 changed files with 19 additions and 1 deletions
|
@ -1,9 +1,9 @@
|
|||
package mage.abilities.condition;
|
||||
|
||||
import java.io.Serializable;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Interface describing condition occurrence.
|
||||
|
@ -12,6 +12,24 @@ import java.io.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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue