Class SBFMovePathFinder.MovePathRelaxer
java.lang.Object
megamek.common.strategicBattleSystems.SBFMovePathFinder.MovePathRelaxer
- All Implemented Interfaces:
AbstractPathFinder.EdgeRelaxer<SBFMovePath,
SBFMovePath>
- Enclosing class:
- SBFMovePathFinder
public static class SBFMovePathFinder.MovePathRelaxer
extends Object
implements AbstractPathFinder.EdgeRelaxer<SBFMovePath,SBFMovePath>
Relaxes edge by favouring MovePaths that end in a not prone stance.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoRelax
(SBFMovePath v, SBFMovePath e, Comparator<SBFMovePath> comparator) Relaxes an edge.
-
Constructor Details
-
MovePathRelaxer
public MovePathRelaxer()
-
-
Method Details
-
doRelax
Description copied from interface:AbstractPathFinder.EdgeRelaxer
Relaxes an edge.- Specified by:
doRelax
in interfaceAbstractPathFinder.EdgeRelaxer<SBFMovePath,
SBFMovePath> - Parameters:
v
- best value till now. Might be null.e
- candidate for the new best valuecomparator
- edge comparator- Returns:
- new best value or null if no relaxation happened
-