mirror of
https://github.com/correl/mage.git
synced 2025-04-03 17:00:16 -09:00
simplified ObjectSourcePlayerPredicate interface
This commit is contained in:
parent
b0094331b4
commit
bcb42b8f46
104 changed files with 107 additions and 111 deletions
Mage.Sets/src/mage/cards
a
b
c
d
e
f
FalseOrders.javaFireAndBrimstone.javaFiresOfInvention.javaFirjasRetribution.javaFlameSweep.javaFrostpyreArcanist.java
g
h
j
k
KeeperOfTheDead.javaKeeperOfTheFlame.javaKeeperOfTheMind.javaKitesailSkirmisher.javaKumenasSpeaker.java
l
m
MalevolentNoble.javaMartialImpetus.javaMirrorSheen.javaMistfolk.javaMistformWarchief.javaMuckDrubb.java
o
OathOfDruids.javaOathOfGhouls.javaOathOfLieges.javaOathOfMages.javaOathOfScholars.javaOldManOfTheSea.java
p
r
s
SageOfTheBeyond.javaSalvageTrader.javaSavaenElves.javaShacklesOfTreachery.javaShellOfTheLastKappa.javaSilverWyvern.javaSilverquillSilencer.javaSimicGuildmage.javaSkullportMerchant.javaSoulShatter.javaSpectralDeluge.javaSpellstutterSprite.javaStumpsquallHydra.java
t
u
v
w
y
Mage/src/main/java/mage
abilities/keyword
constants
filter
FilterCard.javaFilterPermanent.javaFilterPlayer.javaFilterStackObject.java
common
predicate
|
@ -103,7 +103,7 @@ class AkiriFearlessVoyagerTriggeredAbility extends TriggeredAbilityImpl {
|
|||
|
||||
class AkiriFearlessVoyagerEffect extends OneShotEffect {
|
||||
|
||||
private static enum AkiriFearlessVoyagerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
private static enum AkiriFearlessVoyagerPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -54,7 +54,7 @@ public final class AuraGraft extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class AttachedToPermanentPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class AttachedToPermanentPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
public AttachedToPermanentPredicate() {
|
||||
super();
|
||||
|
@ -66,7 +66,7 @@ class AttachedToPermanentPredicate implements ObjectSourcePlayerPredicate<Object
|
|||
}
|
||||
}
|
||||
|
||||
class PermanentCanBeAttachedToPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class PermanentCanBeAttachedToPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
protected Permanent aura;
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public final class BarteredCow extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum BarteredCowPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum BarteredCowPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -100,7 +100,7 @@ class MoveCounterFromTargetToTargetEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class SameControllerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageItem>> {
|
||||
class SameControllerPredicate implements ObjectSourcePlayerPredicate<MageItem> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<MageItem> input, Game game) {
|
||||
|
|
|
@ -138,7 +138,7 @@ class BoreasChargerEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class BoreasChargerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class BoreasChargerPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
|
|
|
@ -61,7 +61,7 @@ public final class CeruleanDrake extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum CeruleanDrakePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
enum CeruleanDrakePredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -100,7 +100,7 @@ class ConduitOfRuinWatcher extends Watcher {
|
|||
}
|
||||
}
|
||||
|
||||
class FirstCastCreatureSpellPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Controllable>> {
|
||||
class FirstCastCreatureSpellPredicate implements ObjectSourcePlayerPredicate<Controllable> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Controllable> input, Game game) {
|
||||
|
|
|
@ -72,7 +72,7 @@ public final class CrownOfDoom extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum CrownOfDoomPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
enum CrownOfDoomPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -52,7 +52,7 @@ public final class CullingScales extends CardImpl {
|
|||
|
||||
}
|
||||
|
||||
class HasLowestCMCAmongstNonlandPermanentsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class HasLowestCMCAmongstNonlandPermanentsPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
|
|
|
@ -59,7 +59,7 @@ public final class DawnCharm extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class DawnCharmPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
class DawnCharmPredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<StackObject> input, Game game) {
|
||||
|
|
|
@ -56,7 +56,7 @@ public final class DevoutHarpist extends CardImpl {
|
|||
|
||||
}
|
||||
|
||||
class DevoutHarpistPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class DevoutHarpistPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
Permanent attachment = input.getObject();
|
||||
|
|
|
@ -59,7 +59,7 @@ public final class DiamondKnight extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum DiamondKnightPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum DiamondKnightPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -114,7 +114,7 @@ class DiseasedVerminEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class DiseasedVerminPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class DiseasedVerminPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
|
|
|
@ -69,7 +69,7 @@ public final class DreadhordeArcanist extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum DreadhordeArcanistPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
enum DreadhordeArcanistPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -68,7 +68,7 @@ public final class EarthshakerKhenra extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum EarthshakerKhenraPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
enum EarthshakerKhenraPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -63,7 +63,7 @@ public final class EliteHeadhunter extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum EliteHeadhunterPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum EliteHeadhunterPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -62,7 +62,7 @@ public final class EnchantmentAlteration extends CardImpl {
|
|||
|
||||
}
|
||||
|
||||
class SharesEnchantedCardTypePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageItem>> {
|
||||
class SharesEnchantedCardTypePredicate implements ObjectSourcePlayerPredicate<MageItem> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<MageItem> input, Game game) {
|
||||
|
|
|
@ -75,7 +75,7 @@ class EvilTwinCopyApplier extends CopyApplier {
|
|||
|
||||
}
|
||||
|
||||
class EvilTwinPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class EvilTwinPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
|
|
|
@ -64,7 +64,7 @@ public final class FalseOrders extends CardImpl {
|
|||
|
||||
}
|
||||
|
||||
enum FalseOrdersDefendingPlayerControlsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Controllable>> {
|
||||
enum FalseOrdersDefendingPlayerControlsPredicate implements ObjectSourcePlayerPredicate<Controllable> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -45,7 +45,7 @@ public final class FireAndBrimstone extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum FireAndBrimstonePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
enum FireAndBrimstonePredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -52,7 +52,7 @@ public final class FiresOfInvention extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum FiresOfInventionPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum FiresOfInventionPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -75,7 +75,7 @@ public final class FirjasRetribution extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum FirjasRetributionPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
enum FirjasRetributionPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -43,7 +43,7 @@ public final class FlameSweep extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum FlameSweepPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
enum FlameSweepPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -79,7 +79,7 @@ public final class FrostpyreArcanist extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum FrostpyreArcanistPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
enum FrostpyreArcanistPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -66,7 +66,7 @@ public final class GomaFadaVanguard extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum GomaFadaVanguardPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum GomaFadaVanguardPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
private static final FilterPermanent filter = new FilterPermanent(SubType.WARRIOR, "");
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ class GyrusWakerOfCorpsesEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class GyrusWakerOfCorpsesPowerLessThanSourcePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
class GyrusWakerOfCorpsesPowerLessThanSourcePredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Card> input, Game game) {
|
||||
|
|
|
@ -101,7 +101,7 @@ class HaktosTheUnscarredChooseEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
enum HaktosTheUnscarredPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
enum HaktosTheUnscarredPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -181,7 +181,7 @@ class SwordOfTheRealmsEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class HalvarGodOfBattlePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class HalvarGodOfBattlePredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
private final FilterPermanent filter;
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ public final class HinderingLight extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class HinderingLightPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
class HinderingLightPredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<StackObject> input, Game game) {
|
||||
|
|
|
@ -114,7 +114,7 @@ class HopeOfGhirapurCantCastEffect extends ContinuousRuleModifyingEffectImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class HopeOfGhirapurPlayerLostLifePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class HopeOfGhirapurPlayerLostLifePredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
public HopeOfGhirapurPlayerLostLifePredicate() {
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ public final class JeweledTorque extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum JeweledTorquePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum JeweledTorquePredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -74,7 +74,7 @@ public final class KeeperOfTheDead extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class KeeperOfDeadPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class KeeperOfDeadPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("creature cards");
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ public final class KeeperOfTheFlame extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class KeeperOfTheFlamePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class KeeperOfTheFlamePredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
|
|
|
@ -102,7 +102,7 @@ enum KeeperOfTheMindAdjuster implements TargetAdjuster {
|
|||
}
|
||||
}
|
||||
|
||||
class KeeperOfTheMindPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class KeeperOfTheMindPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
|
|
|
@ -69,7 +69,7 @@ public final class KitesailSkirmisher extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum KitesailSkirmisherPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum KitesailSkirmisherPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class KumenasSpeaker extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum KumenasSpeakerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum KumenasSpeakerPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -55,7 +55,7 @@ public final class Legerdemain extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class SharesTypePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageItem>> {
|
||||
class SharesTypePredicate implements ObjectSourcePlayerPredicate<MageItem> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<MageItem> input, Game game) {
|
||||
|
|
|
@ -58,7 +58,7 @@ public final class MalevolentNoble extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum MalevolentNoblePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum MalevolentNoblePredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -64,7 +64,7 @@ public final class MartialImpetus extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum MartialImpetusPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
enum MartialImpetusPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -53,7 +53,7 @@ public final class MirrorSheen extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class TargetYouPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
class TargetYouPredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<StackObject> input, Game game) {
|
||||
|
|
|
@ -60,7 +60,7 @@ public final class Mistfolk extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum MistfolkPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Spell>> {
|
||||
enum MistfolkPredicate implements ObjectSourcePlayerPredicate<Spell> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -58,7 +58,7 @@ public final class MistformWarchief extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class MistformWarchiefPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
class MistformWarchiefPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Card> input, Game game) {
|
||||
|
|
|
@ -69,7 +69,7 @@ public final class MuckDrubb extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class SpellWithOnlySingleTargetPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Spell>> {
|
||||
class SpellWithOnlySingleTargetPredicate implements ObjectSourcePlayerPredicate<Spell> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Spell> input, Game game) {
|
||||
|
|
|
@ -66,7 +66,7 @@ enum OathOfDruidsAdjuster implements TargetAdjuster {
|
|||
}
|
||||
}
|
||||
|
||||
class OathOfDruidsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class OathOfDruidsPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
private static final FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ enum OathOfGhoulsAdjuster implements TargetAdjuster {
|
|||
}
|
||||
}
|
||||
|
||||
class OathOfGhoulsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class OathOfGhoulsPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
|
|
|
@ -100,7 +100,7 @@ class OathOfLiegesEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class OathOfLiegesPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class OathOfLiegesPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
|
|
|
@ -66,7 +66,7 @@ enum OathOfMagesAdjuster implements TargetAdjuster {
|
|||
}
|
||||
}
|
||||
|
||||
enum OathOfMagesPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
enum OathOfMagesPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -64,7 +64,7 @@ enum OathOfScholarsAdjuster implements TargetAdjuster {
|
|||
}
|
||||
}
|
||||
|
||||
class OathOfScholarsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class OathOfScholarsPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
|
|
|
@ -148,7 +148,7 @@ class SourcePowerGreaterEqualTargetCondition implements Condition {
|
|||
}
|
||||
}
|
||||
|
||||
class PowerLowerEqualSourcePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class PowerLowerEqualSourcePredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
UUID sourceId;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ public final class PersonalEnergyShield extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class PersonalEnergyFieldPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
class PersonalEnergyFieldPredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<StackObject> input, Game game) {
|
||||
|
|
|
@ -91,7 +91,7 @@ class PsychicRebuttalEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class PsychicRebuttalPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
class PsychicRebuttalPredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<StackObject> input, Game game) {
|
||||
|
|
|
@ -60,7 +60,7 @@ public final class Pyramids extends CardImpl {
|
|||
return new Pyramids(this);
|
||||
}
|
||||
}
|
||||
class PyramidsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class PyramidsPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
Permanent attachment = input.getObject();
|
||||
|
|
|
@ -55,7 +55,7 @@ public final class Radiate extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum SpellWithOnlySingleTargetPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Spell>> {
|
||||
enum SpellWithOnlySingleTargetPredicate implements ObjectSourcePlayerPredicate<Spell> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
@ -79,7 +79,7 @@ enum SpellWithOnlySingleTargetPredicate implements ObjectSourcePlayerPredicate<O
|
|||
}
|
||||
}
|
||||
|
||||
enum SpellWithOnlyPermanentOrPlayerTargetsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Spell>> {
|
||||
enum SpellWithOnlyPermanentOrPlayerTargetsPredicate implements ObjectSourcePlayerPredicate<Spell> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -62,7 +62,7 @@ public final class RebbecArchitectOfAscension extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum RebbecArchitectOfAscensionPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum RebbecArchitectOfAscensionPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -74,7 +74,7 @@ public final class RemoveEnchantments extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class AttachedToOpponentControlledAttackingCreaturePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class AttachedToOpponentControlledAttackingCreaturePredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
|
|
|
@ -57,7 +57,7 @@ public final class Ricochet extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class SpellWithOnlyPlayerTargetsPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Spell>> {
|
||||
class SpellWithOnlyPlayerTargetsPredicate implements ObjectSourcePlayerPredicate<Spell> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Spell> input, Game game) {
|
||||
|
|
|
@ -59,7 +59,7 @@ public final class SageOfTheBeyond extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum SageOfTheBeyondPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
enum SageOfTheBeyondPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -57,7 +57,7 @@ public final class SalvageTrader extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class SameCastingCostPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageItem>> {
|
||||
class SameCastingCostPredicate implements ObjectSourcePlayerPredicate<MageItem> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<MageItem> input, Game game) {
|
||||
|
|
|
@ -59,7 +59,7 @@ public final class SavaenElves extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class SavaenElvesPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class SavaenElvesPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
Permanent attachment = input.getObject();
|
||||
|
|
|
@ -56,7 +56,7 @@ public final class ShacklesOfTreachery extends CardImpl {
|
|||
|
||||
class ShacklesOfTreacheryTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
private enum ShacklesOfTreacheryPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
private enum ShacklesOfTreacheryPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -156,7 +156,7 @@ class ShellOfTheLastKappaCastEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class TargetYouPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
class TargetYouPredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<StackObject> input, Game game) {
|
||||
|
|
|
@ -66,7 +66,7 @@ public final class SilverWyvern extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum SilverWyvernPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
enum SilverWyvernPredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -65,7 +65,7 @@ public final class SilverquillSilencer extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum SilverquillSilencerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum SilverquillSilencerPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -120,7 +120,7 @@ class MoveCounterFromTargetToTargetEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
|
||||
class SameControllerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageItem>> {
|
||||
class SameControllerPredicate implements ObjectSourcePlayerPredicate<MageItem> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<MageItem> input, Game game) {
|
||||
|
|
|
@ -60,7 +60,7 @@ public final class SkullportMerchant extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum SkullportMerchantPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum SkullportMerchantPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -47,7 +47,7 @@ public final class SoulShatter extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum SoulShatterPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
enum SoulShatterPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
instance;
|
||||
|
||||
private static final FilterPermanent filter = new FilterCreatureOrPlaneswalkerPermanent();
|
||||
|
|
|
@ -50,7 +50,7 @@ public final class SpectralDeluge extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum SpectralDelugePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum SpectralDelugePredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
private static final FilterPermanent filter = new FilterControlledPermanent(SubType.ISLAND);
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ public final class SpellstutterSprite extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum SpellstutterSpritePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum SpellstutterSpritePredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
private static final FilterPermanent filter = new FilterPermanent();
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ class StumpsquallHydraEffect extends OneShotEffect {
|
|||
filter.add(StumpsquallHydraPredicate.instance);
|
||||
}
|
||||
|
||||
private enum StumpsquallHydraPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
private enum StumpsquallHydraPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -49,7 +49,7 @@ public final class TelimTorsEdict extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class TelimTorsEdictPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class TelimTorsEdictPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
public TelimTorsEdictPredicate() {
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@ public final class ThunderkinAwakener extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum ThunderkinAwakenerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
enum ThunderkinAwakenerPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -83,7 +83,7 @@ public final class Torchling extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum TorchlingPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>> {
|
||||
enum TorchlingPredicate implements ObjectSourcePlayerPredicate<StackObject> {
|
||||
|
||||
instance;
|
||||
|
||||
|
|
|
@ -86,7 +86,7 @@ class TravelersCloakGainAbilityAttachedEffect extends GainAbilityAttachedEffect
|
|||
}
|
||||
}
|
||||
|
||||
enum TravelersCloakChosenSubtypePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
enum TravelersCloakChosenSubtypePredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -63,7 +63,7 @@ public final class UnlivingPsychopath extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class UnlivingPsychopathPowerLessThanSourcePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class UnlivingPsychopathPowerLessThanSourcePredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
|
|
|
@ -62,7 +62,7 @@ public final class VedalkenShackles extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class PowerIslandPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class PowerIslandPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
static final FilterLandPermanent filter = new FilterLandPermanent("Island");
|
||||
static {
|
||||
|
|
|
@ -67,7 +67,7 @@ public final class VineGecko extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
enum VineGeckoPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
enum VineGeckoPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -56,7 +56,7 @@ public final class WickedAkuba extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class WickedAkubaPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
class WickedAkubaPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Player> input, Game game) {
|
||||
|
|
|
@ -71,7 +71,7 @@ public final class YasovaDragonclaw extends CardImpl {
|
|||
}
|
||||
}
|
||||
|
||||
class YasovaDragonclawPowerLessThanSourcePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
class YasovaDragonclawPowerLessThanSourcePredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
|
|
|
@ -45,7 +45,7 @@ public class MentorAbility extends AttacksTriggeredAbility {
|
|||
|
||||
}
|
||||
|
||||
enum MentorAbilityPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
enum MentorAbilityPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -50,7 +50,7 @@ public enum TargetController {
|
|||
return controllerPredicate;
|
||||
}
|
||||
|
||||
public static class OwnerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
public static class OwnerPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
|
||||
private final TargetController targetOwner;
|
||||
|
||||
|
@ -99,7 +99,7 @@ public enum TargetController {
|
|||
}
|
||||
}
|
||||
|
||||
public static class PlayerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
public static class PlayerPredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
private final TargetController targetPlayer;
|
||||
|
||||
|
@ -143,7 +143,7 @@ public enum TargetController {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ControllerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Controllable>> {
|
||||
public static class ControllerPredicate implements ObjectSourcePlayerPredicate<Controllable> {
|
||||
|
||||
private final TargetController controller;
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import java.util.stream.Collectors;
|
|||
public class FilterCard extends FilterObject<Card> {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
protected List<ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>>> extraPredicates = new ArrayList<>();
|
||||
protected List<ObjectSourcePlayerPredicate<Card>> extraPredicates = new ArrayList<>();
|
||||
|
||||
public FilterCard() {
|
||||
super("card");
|
||||
|
|
|
@ -3,7 +3,6 @@ package mage.filter;
|
|||
import mage.constants.SubType;
|
||||
import mage.filter.predicate.ObjectSourcePlayer;
|
||||
import mage.filter.predicate.ObjectSourcePlayerPredicate;
|
||||
import mage.filter.predicate.ObjectSourcePlayer;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
@ -18,7 +17,7 @@ import java.util.UUID;
|
|||
*/
|
||||
public class FilterPermanent extends FilterObject<Permanent> implements FilterInPlay<Permanent> {
|
||||
|
||||
protected List<ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>>> extraPredicates = new ArrayList<>();
|
||||
protected List<ObjectSourcePlayerPredicate<Permanent>> extraPredicates = new ArrayList<>();
|
||||
|
||||
public FilterPermanent() {
|
||||
super("permanent");
|
||||
|
|
|
@ -16,7 +16,7 @@ import java.util.UUID;
|
|||
*/
|
||||
public class FilterPlayer extends FilterImpl<Player> {
|
||||
|
||||
protected List<ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>>> extraPredicates = new ArrayList<>();
|
||||
protected List<ObjectSourcePlayerPredicate<Player>> extraPredicates = new ArrayList<>();
|
||||
|
||||
public FilterPlayer() {
|
||||
this("player");
|
||||
|
|
|
@ -2,10 +2,8 @@ package mage.filter;
|
|||
|
||||
import mage.filter.predicate.ObjectSourcePlayer;
|
||||
import mage.filter.predicate.ObjectSourcePlayerPredicate;
|
||||
import mage.filter.predicate.ObjectSourcePlayer;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.stack.StackObject;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -17,7 +15,7 @@ import java.util.UUID;
|
|||
*/
|
||||
public class FilterStackObject extends FilterObject<StackObject> {
|
||||
|
||||
protected List<ObjectSourcePlayerPredicate<ObjectSourcePlayer<StackObject>>> extraPredicates = new ArrayList<>();
|
||||
protected List<ObjectSourcePlayerPredicate<StackObject>> extraPredicates = new ArrayList<>();
|
||||
|
||||
public FilterStackObject() {
|
||||
this("spell or ability");
|
||||
|
|
|
@ -5,7 +5,6 @@ import mage.filter.FilterImpl;
|
|||
import mage.filter.FilterInPlay;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.FilterPlayer;
|
||||
import mage.filter.predicate.ObjectSourcePlayer;
|
||||
import mage.filter.predicate.ObjectSourcePlayerPredicate;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
|
|
|
@ -5,5 +5,5 @@ package mage.filter.predicate;
|
|||
* @author North
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface ObjectSourcePlayerPredicate<T extends ObjectSourcePlayer<?>> extends Predicate<T> {
|
||||
public interface ObjectSourcePlayerPredicate<T> extends Predicate<ObjectSourcePlayer<T>> {
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import mage.players.Player;
|
|||
* @author JayDi85
|
||||
*/
|
||||
|
||||
public enum CardOnTopOfLibraryPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
public enum CardOnTopOfLibraryPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
YOUR,
|
||||
ANY;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import mage.game.Game;
|
|||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum DefendingPlayerOwnsCardPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Card>> {
|
||||
public enum DefendingPlayerOwnsCardPredicate implements ObjectSourcePlayerPredicate<Card> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -10,7 +10,7 @@ import mage.game.Game;
|
|||
*
|
||||
* @author North
|
||||
*/
|
||||
public class AnotherCardPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
public class AnotherCardPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<MageObject> input, Game game) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import mage.game.Game;
|
|||
/**
|
||||
* @author North
|
||||
*/
|
||||
public enum AnotherPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
public enum AnotherPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
|
|
|
@ -9,7 +9,7 @@ import mage.game.Game;
|
|||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public enum ChosenColorPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
public enum ChosenColorPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
TRUE(true), FALSE(false);
|
||||
|
||||
private final boolean value;
|
||||
|
|
|
@ -13,7 +13,7 @@ import mage.game.Game;
|
|||
*
|
||||
* @author LoneFox
|
||||
*/
|
||||
public enum ChosenSubtypePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
public enum ChosenSubtypePredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
TRUE(true), FALSE(false);
|
||||
|
||||
private final boolean value;
|
||||
|
|
|
@ -10,7 +10,7 @@ import mage.game.Game;
|
|||
* @author LevelX2
|
||||
*/
|
||||
|
||||
public class SharesColorWithSourcePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
public class SharesColorWithSourcePredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<MageObject> input, Game game) {
|
||||
|
|
|
@ -14,7 +14,7 @@ import mage.target.Target;
|
|||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public class TargetsOnlyOnePlayerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
public class TargetsOnlyOnePlayerPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
|
||||
public TargetsOnlyOnePlayerPredicate() {
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ import java.util.UUID;
|
|||
/**
|
||||
* @author LoneFox
|
||||
*/
|
||||
public class TargetsPermanentPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
public class TargetsPermanentPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
|
||||
private final FilterPermanent targetFilter;
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import mage.target.Target;
|
|||
*
|
||||
* @author jeffwadsworth
|
||||
*/
|
||||
public class TargetsPlayerPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageObject>> {
|
||||
public class TargetsPlayerPredicate implements ObjectSourcePlayerPredicate<MageObject> {
|
||||
|
||||
public TargetsPlayerPredicate() {
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ import mage.target.Target;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class AnotherTargetPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<MageItem>> {
|
||||
public class AnotherTargetPredicate implements ObjectSourcePlayerPredicate<MageItem> {
|
||||
|
||||
private final int targetTag;
|
||||
private final boolean crossModalCheck;
|
||||
|
|
|
@ -12,7 +12,7 @@ import java.util.UUID;
|
|||
/**
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class DamagedPlayerThisTurnPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Controllable>> {
|
||||
public class DamagedPlayerThisTurnPredicate implements ObjectSourcePlayerPredicate<Controllable> {
|
||||
|
||||
private final TargetController controller;
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import mage.players.Player;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class PlayerCanGainLifePredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Player>> {
|
||||
public class PlayerCanGainLifePredicate implements ObjectSourcePlayerPredicate<Player> {
|
||||
|
||||
// public PlayerCanGainLifePredicate() {
|
||||
// }
|
||||
|
|
|
@ -10,7 +10,7 @@ import mage.game.permanent.Permanent;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class AnotherEnchantedPredicate implements ObjectSourcePlayerPredicate<ObjectSourcePlayer<Permanent>> {
|
||||
public class AnotherEnchantedPredicate implements ObjectSourcePlayerPredicate<Permanent> {
|
||||
|
||||
@Override
|
||||
public boolean apply(ObjectSourcePlayer<Permanent> input, Game game) {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue