Package megamek.common
Class BulldozerMovePath.MPCostComparator
java.lang.Object
megamek.common.BulldozerMovePath.MPCostComparator
- All Implemented Interfaces:
Comparator<BulldozerMovePath>
- Enclosing class:
BulldozerMovePath
public static class BulldozerMovePath.MPCostComparator
extends Object
implements Comparator<BulldozerMovePath>
Comparator implementation useful in comparing two bulldozer move paths by how many MP it'll take to accomplish
that path, including time wasted leveling any obstacles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(BulldozerMovePath first, BulldozerMovePath second) compare the first move path to the second Favors paths that spend less mp total in case of tie, favors paths that use more hexesMethods 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
-
MPCostComparator
public MPCostComparator()
-
-
Method Details
-
compare
compare the first move path to the second Favors paths that spend less mp total in case of tie, favors paths that use more hexes- Specified by:
comparein interfaceComparator<BulldozerMovePath>
-