Class MovePathLengthFilter

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

public class MovePathLengthFilter extends Filter<SBFMovePath>
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(SBFMovePath mp)
      Description copied from class: Filter
      Tests if the object should stay in the collection.
      Specified by:
      shouldStay in class Filter<SBFMovePath>
      Parameters:
      mp - tested object
      Returns:
      true if the object should stay in the collection