Class Builder
java.lang.Object
megamek.client.bot.princess.coverage.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the newFiringPlanCalculationParametersbased on the builder properties.buildExact(Entity shooter, Targetable target, Map<WeaponMounted, Double> ammoConservation) buildGuess(Entity shooter, EntityState shooterState, Targetable target, EntityState targetState, int maxHeat, Map<WeaponMounted, Double> ammoConservation) intsetAmmoConservation(Map<WeaponMounted, Double> value) Ammo conservation biases of the unit's mounted weapons.Are we guessing or not? Defaults toFiringPlanCalculationParameters.FiringPlanCalculationType.GUESSsetMaxHeat(int value) How much heat we're willing to tolerate.setShooter(Entity value) The unit doing the shooting.setShooterState(EntityState value) the current state of the shooting unit.setTarget(Targetable value) The unit being shot at.setTargetState(EntityState value) The current state of the target unit.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setShooter
The unit doing the shooting. -
setShooterState
the current state of the shooting unit. -
setTarget
The unit being shot at. -
setTargetState
The current state of the target unit. -
setMaxHeat
How much heat we're willing to tolerate. Defaults toEntity.DOES_NOT_TRACK_HEAT -
setAmmoConservation
Ammo conservation biases of the unit's mounted weapons. Defaults to an empty map. -
setCalculationType
Are we guessing or not? Defaults toFiringPlanCalculationParameters.FiringPlanCalculationType.GUESS -
build
Builds the newFiringPlanCalculationParametersbased on the builder properties. -
buildGuess
public FiringPlanCalculationParameters buildGuess(Entity shooter, @Nullable EntityState shooterState, Targetable target, @Nullable EntityState targetState, int maxHeat, @Nullable Map<WeaponMounted, Double> ammoConservation) -
buildExact
public FiringPlanCalculationParameters buildExact(Entity shooter, Targetable target, Map<WeaponMounted, Double> ammoConservation) -
getShooter
-
getShooterState
-
getTarget
-
getTargetState
-
getMaxHeat
public int getMaxHeat() -
getAmmoConservation
-
getCalculationType
-