/** * Checks to see if the target is visible to the unit, always considering * sensors. */ public static boolean canSee(IGame game, Entity ae, Targetable target) { return canSee(game, ae, target, true, null, null); }
&& LosEffects.calculateLos(game, ae.getId(), target).canSee() && (!game.getOptions().booleanOption(OptionsConstants.ADVANCED_DOUBLE_BLIND) || Compute.canSee(game, ae, target)) && !(wtype instanceof ArtilleryCannonWeapon) && !(wtype instanceof MekMortarWeapon)) { return "Indirect-fire LRM cannot be fired with direct LOS from attacker to target."; && LosEffects.calculateLos(game, attackerId, target).canSee() && (!game.getOptions().booleanOption(OptionsConstants.ADVANCED_DOUBLE_BLIND) || Compute.canSee(game, ae, target)) && !(wtype instanceof ArtilleryCannonWeapon) && !(wtype instanceof MekMortarWeapon)) { return "Indirect fire impossible with direct LOS"; if (!en.isEnemyOf(ae) && en.onSameC3NetworkAs(ae) && Compute.canSee(game, en, target)) { networkSee = true; break;
&& LosEffects.calculateLos(game, ae.getId(), target).canSee() && (!game.getOptions().booleanOption(OptionsConstants.ADVANCED_DOUBLE_BLIND) || Compute .canSee(game, ae, target)) && !(wtype instanceof MekMortarWeapon)) { return new ToHitData(TargetRoll.IMPOSSIBLE,