rename counttype to comparisontype

This commit is contained in:
ingmargoudt 2017-04-11 17:01:59 +02:00
parent 60a325c43f
commit 03643d53a3
489 changed files with 1062 additions and 1062 deletions

View file

@ -28,7 +28,7 @@
package mage.abilities.condition.common;
import mage.abilities.Ability;
import mage.abilities.CountType;
import mage.constants.ComparisonType;
import mage.abilities.condition.Condition;
import mage.game.Game;
import mage.players.Player;
@ -40,10 +40,10 @@ import java.util.UUID;
*/
public class CardsInAnyLibraryCondition implements Condition {
protected final CountType type;
protected final ComparisonType type;
protected final int value;
public CardsInAnyLibraryCondition(CountType type, int value) {
public CardsInAnyLibraryCondition(ComparisonType type, int value) {
this.type = type;
this.value = value;
}
@ -55,7 +55,7 @@ public class CardsInAnyLibraryCondition implements Condition {
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
Player player = game.getPlayer(playerId);
if (player != null) {
return CountType.compare(player.getLibrary().size(), type, value);
return ComparisonType.compare(player.getLibrary().size(), type, value);
}
}