Class OddCostFilter

java.lang.Object
All Implemented Interfaces:
java.io.Serializable, HasDesc<EntityFilterDesc>

public class OddCostFilter
extends ManaCostFilter
Only returns entities that have a base odd-cost.
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • test

      @Suspendable 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.
      Overrides:
      test in class ManaCostFilter
      Returns:
    • getManaCost

      protected int getManaCost​(GameContext context, Player player, Entity entity)
      Overrides:
      getManaCost in class ManaCostFilter