Package megamek.common.pathfinder
Class LongestPathFinder.MovePathMinefieldAvoidanceMinMPMaxDistanceComparator
java.lang.Object
megamek.common.pathfinder.comparators.MovePathMPCostComparator
megamek.common.pathfinder.LongestPathFinder.MovePathMinMPMaxDistanceComparator
megamek.common.pathfinder.LongestPathFinder.MovePathMinefieldAvoidanceMinMPMaxDistanceComparator
- All Implemented Interfaces:
Comparator<MovePath>
- Enclosing class:
LongestPathFinder
public static class LongestPathFinder.MovePathMinefieldAvoidanceMinMPMaxDistanceComparator
extends LongestPathFinder.MovePathMinMPMaxDistanceComparator
Comparator that sorts MovePaths based on, in order, the following criteria: Minefield hazard (stepping on fewer
mines is better) The Least MP used Most distance moved
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MovePathMinefieldAvoidanceMinMPMaxDistanceComparator
public MovePathMinefieldAvoidanceMinMPMaxDistanceComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<MovePath>- Overrides:
comparein classLongestPathFinder.MovePathMinMPMaxDistanceComparator
-