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

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Tests if the object should stay in the collection.

    Methods inherited from class megamek.common.pathfinder.filters.Filter

    doFilter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MovePathRiskFilter

      public MovePathRiskFilter()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • shouldStay

      public boolean shouldStay(MovePath mp)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: Filter
      Tests if the object should stay in the collection.
      Specified by:
      shouldStay in class Filter<MovePath>
      Parameters:
      mp - tested object
      Returns:
      true if the object should stay in the collection