Class MovePathLengthFilter

java.lang.Object
megamek.common.pathfinder.filters.Filter<MovePath>
megamek.common.pathfinder.filters.MovePathLengthFilter

public class MovePathLengthFilter extends Filter<MovePath>
This filter removes MovePaths that need more movement points than specified in constructor invocation.
  • Constructor Details

    • MovePathLengthFilter

      public MovePathLengthFilter(int maxMP)
  • Method Details

    • shouldStay

      public boolean shouldStay(MovePath mp)
      Description copied from class: Filter
      Tests if the object should stay in the collection.
      Specified by:
      shouldStay in class Filter<MovePath>
      Parameters:
      mp - tested object
      Returns:
      true if the object should stay in the collection