Class MovePathGreedyFilter

java.lang.Object
megamek.common.pathfinder.filters.Filter<MovePath>
megamek.common.pathfinder.filters.MovePathGreedyFilter

public class MovePathGreedyFilter extends Filter<MovePath>
See Also:
  • Constructor Details

    • MovePathGreedyFilter

      public MovePathGreedyFilter(Coords dest)
  • Method Details

    • shouldStay

      public boolean shouldStay(MovePath movePath)
      Returns true if last step reduces distance to destination or if the last step is a turn, get_up...
      Specified by:
      shouldStay in class Filter<MovePath>
      Parameters:
      movePath - tested object
      Returns:
      true if the object should stay in the collection