Package megamek.common.pathfinder
Class MovePathFinder.MovePathMPCostComparator
java.lang.Object
megamek.common.pathfinder.MovePathFinder.MovePathMPCostComparator
- All Implemented Interfaces:
Comparator<MovePath>
- Direct Known Subclasses:
LongestPathFinder.MovePathMinMPMaxDistanceComparator
- Enclosing class:
- MovePathFinder<C>
public static class MovePathFinder.MovePathMPCostComparator
extends Object
implements Comparator<MovePath>
A MovePath comparator that compares movement points spent.
Order paths with fewer used MP first.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
MovePathMPCostComparator
public MovePathMPCostComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<MovePath>
-