Package megamek.client.bot.princess
Class NewtonianAerospacePathRanker
java.lang.Object
megamek.client.bot.princess.PathRanker
megamek.client.bot.princess.BasicPathRanker
megamek.client.bot.princess.NewtonianAerospacePathRanker
- All Implemented Interfaces:
IPathRanker
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.client.bot.princess.BasicPathRanker
BasicPathRanker.FiringPhysicalDamageNested classes/interfaces inherited from class megamek.client.bot.princess.PathRanker
PathRanker.PathRankerType -
Field Summary
Fields inherited from class megamek.client.bot.princess.BasicPathRanker
bestDamageByEnemies, blackIce, ESTIMATE_NOISE_MARGIN, FACING_MOD_MULTIPLIER, HOLD_CREDIT_ATTACK_CAP_FACTOR, HOLD_CREDIT_DEFEND_CAP_FACTOR, LOG_DECIMAL, LOG_PERCENT, REPRESENTATIVE_TO_HIT, TEMPO_REFERENCE_MP, THREAT_CONTACT_RANGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculateOffBoardMod(MovePath path) Tells me whether this path will result in me flying to a location from which there is absolutely no way to remain on the board the following turn.protected booleanevaluateAsMoved(Entity enemy) Worker function that determines if a given enemy entity should be evaluated as if it has moved.findClosestEnemy(Entity me, Coords position, Game game) Find the closest enemy to a unit with a path that ends at the given position.static booleanwillFlyOffBoard(Entity entity, Coords coords) Whether an entity will go off board if it starts at the given coordinates with the given vectors.Methods inherited from class megamek.client.bot.princess.BasicPathRanker
attackerMovementDamageDiscount, calcDamageToStrategicTargets, calculateAerospaceMod, calculateAggressionMod, calculateCloseRangeIncentive, calculateCrowdingTolerance, calculateFacingMod, calculateMovementMod, calculateMutualSupportMod, calculatePositionHoldMod, calculateSelfPreservationMod, checkBlackIce, checkPathForHazards, distanceToClosestEnemy, doctrineScores, getBraveryMod, getPSRList, hexProperties, incomingFireTerrainDiscount, initUnitTurn, isExtremeRange, isLosRange, isWithdrawing, rankPath, rankPaths, resolvedPostureFor, resolvePostureMethods inherited from class megamek.client.bot.princess.PathRanker
calcAllyCenter, calculateAlliesCenter, calculateMovePathPSRDamage, distanceToHomeEdge, findClosestEnemy, getBestPath, getMovePathSuccessProbability, getOwner, getPathRankerStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.client.bot.princess.IPathRanker
findClosestEnemy
-
Constructor Details
-
NewtonianAerospacePathRanker
-
-
Method Details
-
findClosestEnemy
Find the closest enemy to a unit with a path that ends at the given position.- Specified by:
findClosestEnemyin interfaceIPathRanker- Overrides:
findClosestEnemyin classPathRanker
-
calculateOffBoardMod
Tells me whether this path will result in me flying to a location from which there is absolutely no way to remain on the board the following turn.We also take into account the possibility that we are intentionally trying to
- retreat
- fly off a particular
- Overrides:
calculateOffBoardModin classBasicPathRanker- Parameters:
path- The path to examine- Returns:
- 0 if we are A-Ok with it, .5 (maybe tune this) if we aren't looking to go off board
-
willFlyOffBoard
Whether an entity will go off board if it starts at the given coordinates with the given vectors.- Parameters:
entity- Entity to examinecoords- Starting coordinates- Returns:
- Whether the entity will go off board or not.
-
evaluateAsMoved
Worker function that determines if a given enemy entity should be evaluated as if it has moved.- Overrides:
evaluateAsMovedin classBasicPathRanker
-