Class MovePathLengthFilter
java.lang.Object
megamek.common.pathfinder.filters.Filter<MovePath>
megamek.common.pathfinder.filters.MovePathLengthFilter
This filter removes MovePaths that need more movement points than specified in constructor invocation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldStay(MovePath mp) Tests if the object should stay in the collection.
-
Constructor Details
-
MovePathLengthFilter
public MovePathLengthFilter(int maxMP)
-
-
Method Details
-
shouldStay
Description copied from class:FilterTests if the object should stay in the collection.- Specified by:
shouldStayin classFilter<MovePath>- Parameters:
mp- tested object- Returns:
- true if the object should stay in the collection
-