Package megamek.client.bot.princess
Class PathRankerState
java.lang.Object
megamek.client.bot.princess.PathRankerState
This class handles state information for Princess' path ranking algorithms, as the path ranker and its subclasses are
intended to be basically stateless.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Map of coordinates to known incoming artillery damage.The map of success probabilities for given move paths.
-
Constructor Details
-
PathRankerState
public PathRankerState()
-
-
Method Details
-
getPathSuccessProbabilities
The map of success probabilities for given move paths. The calculation of a move success probability is pretty complex, so we can cache them here.- Returns:
- Map of path keys to success probabilities.
-
getIncomingFriendlyArtilleryDamage
Map of coordinates to known incoming artillery damage.- Returns:
- Map of coordinates.
-
clearState
Deprecated, for removal: This API element is subject to removal in a future version.Convenience method that clears the current path ranker state.
-