Class SBFMovePathFinder.MovePathAStarComparator

java.lang.Object
megamek.common.strategicBattleSystems.SBFMovePathFinder.MovePathAStarComparator
All Implemented Interfaces:
Serializable, Comparator<SBFMovePath>
Enclosing class:
SBFMovePathFinder

public static class SBFMovePathFinder.MovePathAStarComparator extends Object implements Comparator<SBFMovePath>, Serializable
A MovePath comparator that compares movement points spent and distance to destination. If those are equal then MovePaths with more HexesMoved are Preferred. This should considerably speed A* when multiple shortest paths are present.

This comparator is used by A* algorithm.

See Also: