Class Inventory.Selector

java.lang.Object
VASSAL.build.module.Inventory.Selector
All Implemented Interfaces:
PieceFilter
Enclosing class:
Inventory

protected static class Inventory.Selector extends Object implements PieceFilter
Filter to select pieces required
Author:
Brent Easton
  • Field Details

  • Constructor Details

    • Selector

      public Selector(String include)
  • Method Details

    • accept

      public boolean accept(GamePiece piece)
      Description copied from interface: PieceFilter
      Test if a piece matches the filter. This sig should only be used for filters that can not have Expressions as a component of the filter and thus have no Expression Auditing requirementts
      Specified by:
      accept in interface PieceFilter
      Parameters:
      piece - piece
      Returns:
      true if piece match filter