/** * Constructor including the shooter and target's state information. * * @param shooter The {@link megamek.common.Entity} doing the attacking. * @param shooterState The current {@link megamek.client.bot.princess.EntityState} of the attacker. * @param target The {@link megamek.common.Targetable} of the attack. * @param targetState The current {@link megamek.client.bot.princess.EntityState} of the target. * @param physicalAttackType The type of attack being made. * @param game The {@link megamek.common.IGame} in progress. * @param owner The owning {@link Princess} bot. * @param guess Set TRUE to estimate the chance to hit rather than doing the full calculation. */ PhysicalInfo(Entity shooter, EntityState shooterState, Targetable target, EntityState targetState, PhysicalAttackType physicalAttackType, IGame game, Princess owner, boolean guess) { this.owner = owner; setShooter(shooter); setTarget(target); setAttackType(physicalAttackType); initDamage(physicalAttackType, shooterState, targetState, guess, game); }
testPhysicalInfo.setTarget(mockTarget); Mockito.doNothing().when(testPhysicalInfo).setDamageDirection(Mockito.any(EntityState.class), Mockito.nullable(Coords.class));