Class CopiesHaveBeenPlayedFilter

java.lang.Object
net.demilich.metastone.game.spells.desc.filter.EntityFilter
net.demilich.metastone.game.spells.desc.filter.CopiesHaveBeenPlayedFilter
All Implemented Interfaces:
Serializable, HasDesc<EntityFilterDesc>

public final class CopiesHaveBeenPlayedFilter extends EntityFilter
Returns entities that have been played by EntityFilterArg.TARGET_PLAYER. In other words, this lets you filter a card that hasn't been played but whose copies have.
See Also:
  • Constructor Details

    • CopiesHaveBeenPlayedFilter

      public CopiesHaveBeenPlayedFilter(EntityFilterDesc desc)
  • Method Details

    • test

      protected boolean test(GameContext context, Player player, Entity entity, Entity host)
      Description copied from class: EntityFilter
      The subclasses of this class implement this method to actually perform the logic of the filtering. Observe that results from filtering other entities are not available here; this function is stateless in the sense that an earlier acceptance or rejection of an entity cannot influence the acceptance or rejection of a current entity.
      Specified by:
      test in class EntityFilter
      Returns: