Package megamek.client.bot.princess
Class MinefieldUtil
java.lang.Object
megamek.client.bot.princess.MinefieldUtil
This class contains logic to evaluate the damage a unit could sustain from moving a long a move path containing
minefields
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doublecalcMinefieldHazardForHex(MoveStep step, Entity movingUnit, boolean isJumping, boolean lastStep) Calculate how much damage we'll take from stepping on mines in a particular hexstatic doubleCalculate how much damage we'll take from stepping on mines over a particular path
-
Constructor Details
-
MinefieldUtil
public MinefieldUtil()
-
-
Method Details
-
checkPathForMinefieldHazards
Calculate how much damage we'll take from stepping on mines over a particular path -
calcMinefieldHazardForHex
public static double calcMinefieldHazardForHex(@Nullable MoveStep step, Entity movingUnit, boolean isJumping, boolean lastStep) Calculate how much damage we'll take from stepping on mines in a particular hex
-