Class MovePathRelaxer
java.lang.Object
megamek.common.strategicBattleSystems.MovePathRelaxer
- All Implemented Interfaces:
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:EdgeRelaxerRelaxes an edge.- Specified by:
doRelaxin interfaceEdgeRelaxer<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
-