From 67e219b2f77f2e429709a5f650fddf7e1a0d9874 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sun, 23 Dec 2012 22:20:56 +0100 Subject: [PATCH] Missing changes to Condition. --- .../mage/abilities/condition/Condition.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/abilities/condition/Condition.java b/Mage/src/mage/abilities/condition/Condition.java index 97e114d686..ad2b4afd1a 100644 --- a/Mage/src/mage/abilities/condition/Condition.java +++ b/Mage/src/mage/abilities/condition/Condition.java @@ -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. *