Class MovePathRiskFilter
java.lang.Object
megamek.common.pathfinder.filters.Filter<MovePath>
megamek.common.pathfinder.filters.MovePathRiskFilter
@Deprecated(since="0.51.0",
forRemoval=true)
public class MovePathRiskFilter
extends Filter<MovePath>
Deprecated, for removal: This API element is subject to removal in a future version.
Filters MovePaths that are forcing PSR.
FIXME : Current implementation uses MoveStep.isDanger(). This implementation is broken :( FIXME : It does not work properly for movement paths that use running mp.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldStay(MovePath mp) Deprecated, for removal: This API element is subject to removal in a future version.Tests if the object should stay in the collection.
-
Constructor Details
-
MovePathRiskFilter
public MovePathRiskFilter()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
shouldStay
Deprecated, for removal: This API element is subject to removal in a future version.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
-