Class PathRankerState

java.lang.Object
megamek.client.bot.princess.PathRankerState

public class PathRankerState extends Object
This class handles state information for Princess' path ranking algorithms, as the path ranker and its subclasses are intended to be basically stateless.
  • Constructor Details

    • PathRankerState

      public PathRankerState()
  • Method Details

    • getPathSuccessProbabilities

      public Map<Key,Double> 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

      public Map<Coords,Double> getIncomingFriendlyArtilleryDamage()
      Map of coordinates to known incoming artillery damage.
      Returns:
      Map of coordinates.
    • clearState

      @Deprecated(since="0.51.0", forRemoval=true) public void clearState()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Convenience method that clears the current path ranker state.