Class RangeFilter

java.lang.Object
VASSAL.counters.RangeFilter
All Implemented Interfaces:
PieceFilter

public class RangeFilter extends Object implements PieceFilter
Accepts all pieces within a specified range of a given point on a map
  • Constructor Details

    • RangeFilter

      public RangeFilter(Map map, Point location, int range)
  • 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