forked from External/mage
Change all line endings to LF
This commit is contained in:
parent
13d9a56b7a
commit
430ae503c7
17069 changed files with 1263498 additions and 1263497 deletions
|
|
@ -1,41 +1,41 @@
|
|||
package mage.abilities.condition;
|
||||
|
||||
import java.io.Serializable;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
||||
|
||||
/**
|
||||
* Interface describing condition occurrence.
|
||||
*
|
||||
* @author nantuko, noxx
|
||||
*/
|
||||
public interface Condition extends Serializable {
|
||||
|
||||
public 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.
|
||||
*
|
||||
* @param game
|
||||
* @param source
|
||||
* @return
|
||||
*/
|
||||
boolean apply(Game game, Ability source);
|
||||
}
|
||||
package mage.abilities.condition;
|
||||
|
||||
import java.io.Serializable;
|
||||
import mage.abilities.Ability;
|
||||
import mage.game.Game;
|
||||
|
||||
|
||||
/**
|
||||
* Interface describing condition occurrence.
|
||||
*
|
||||
* @author nantuko, noxx
|
||||
*/
|
||||
public interface Condition extends Serializable {
|
||||
|
||||
public 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.
|
||||
*
|
||||
* @param game
|
||||
* @param source
|
||||
* @return
|
||||
*/
|
||||
boolean apply(Game game, Ability source);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue