forked from External/mage
removed autoboxing :
Boolean -> boolean Integer -> int Float -> float
This commit is contained in:
parent
4b5378c423
commit
1f215cdbe3
51 changed files with 110 additions and 110 deletions
|
|
@ -45,13 +45,13 @@ public class AbilityApplier extends ApplyToPermanent {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Boolean apply(Game game, Permanent permanent) {
|
||||
public boolean apply(Game game, Permanent permanent) {
|
||||
permanent.addAbility(ability, game);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean apply(Game game, MageObject mageObject) {
|
||||
public boolean apply(Game game, MageObject mageObject) {
|
||||
mageObject.getAbilities().add(ability);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public class AddSubtypeApplier extends ApplyToPermanent {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Boolean apply(Game game, Permanent permanent) {
|
||||
public boolean apply(Game game, Permanent permanent) {
|
||||
if (!permanent.getSubtype(game).contains(subtype)) {
|
||||
permanent.getSubtype(game).add(subtype);
|
||||
}
|
||||
|
|
@ -30,7 +30,7 @@ public class AddSubtypeApplier extends ApplyToPermanent {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Boolean apply(Game game, MageObject mageObject) {
|
||||
public boolean apply(Game game, MageObject mageObject) {
|
||||
if (!mageObject.getSubtype(game).contains(subtype)) {
|
||||
mageObject.getSubtype(game).add(subtype);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,5 +36,5 @@ import mage.game.Game;
|
|||
*/
|
||||
public abstract class ApplyToMageObject {
|
||||
|
||||
public abstract Boolean apply(Game game, MageObject mageObject);
|
||||
public abstract boolean apply(Game game, MageObject mageObject);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,5 +9,5 @@ import mage.game.permanent.Permanent;
|
|||
*/
|
||||
public abstract class ApplyToPermanent extends ApplyToMageObject implements Serializable {
|
||||
|
||||
public abstract Boolean apply(Game game, Permanent permanent);
|
||||
public abstract boolean apply(Game game, Permanent permanent);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public class CardTypeApplier extends ApplyToPermanent {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Boolean apply(Game game, Permanent permanent) {
|
||||
public boolean apply(Game game, Permanent permanent) {
|
||||
if (!permanent.getCardType().contains(cardType)) {
|
||||
permanent.getCardType().add(cardType);
|
||||
}
|
||||
|
|
@ -53,7 +53,7 @@ public class CardTypeApplier extends ApplyToPermanent {
|
|||
}
|
||||
|
||||
@Override
|
||||
public Boolean apply(Game game, MageObject mageObject) {
|
||||
public boolean apply(Game game, MageObject mageObject) {
|
||||
if (!mageObject.getCardType().contains(cardType)) {
|
||||
mageObject.getCardType().add(cardType);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ import mage.game.permanent.Permanent;
|
|||
public class EmptyApplyToPermanent extends ApplyToPermanent {
|
||||
|
||||
@Override
|
||||
public Boolean apply(Game game, Permanent permanent) {
|
||||
public boolean apply(Game game, Permanent permanent) {
|
||||
// do nothing
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean apply(Game game, MageObject mageObject) {
|
||||
public boolean apply(Game game, MageObject mageObject) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue