Class MovePathGreedyFilter
java.lang.Object
megamek.common.pathfinder.filters.Filter<MovePath>
megamek.common.pathfinder.filters.MovePathGreedyFilter
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldStay(MovePath movePath) Returns true if last step reduces distance to destination or if the last step is a turn, get_up...
-
Constructor Details
-
MovePathGreedyFilter
-
-
Method Details
-
shouldStay
Returns true if last step reduces distance to destination or if the last step is a turn, get_up...- Specified by:
shouldStayin classFilter<MovePath>- Parameters:
movePath- tested object- Returns:
- true if the object should stay in the collection
-