Class CounterDetailViewer.Filter

java.lang.Object
VASSAL.build.module.map.CounterDetailViewer.Filter
All Implemented Interfaces:
PieceFilter
Enclosing class:
CounterDetailViewer

protected class CounterDetailViewer.Filter extends Object implements PieceFilter
Utility class to select the pieces we wish to view.
Version:
1.0
Author:
David Sullivan
  • Field Details

    • topLayer

      protected int topLayer
  • Constructor Details

    • Filter

      public Filter()
  • Method Details

    • checkFilter

      public boolean checkFilter(GamePiece piece)
    • 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
    • accept

      public boolean accept(GamePiece piece, int layer, String layerName)