Class MovePathLegalityFilter
java.lang.Object
megamek.common.pathfinder.filters.Filter<MovePath>
megamek.common.pathfinder.filters.MovePathLegalityFilter
Filters edges that are illegal.
Current implementation uses MoveStep.isMovementPossible() to verify legality.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldStay(MovePath edge) Tests if the object should stay in the collection.
-
Constructor Details
-
MovePathLegalityFilter
-
-
Method Details
-
shouldStay
Description copied from class:FilterTests if the object should stay in the collection.- Specified by:
shouldStayin classFilter<MovePath>- Parameters:
edge- tested object- Returns:
- true if the object should stay in the collection
-