setSearchlightEnabled(ce() != null && target != null && ce().isUsingSpotlight());
    private void updateTarget() {        // dis/enable physical attach buttons        if (cen != Entity.NONE && target != null) {            if (target.getTargetType() != Targetable.TYPE_INARC_POD) {                // punch?                final ToHitData leftArm = PunchAttackAction.toHit                   (client.game, cen, target, PunchAttackAction.LEFT);                final ToHitData rightArm = PunchAttackAction.toHit                   (client.game, cen, target, PunchAttackAction.RIGHT);                boolean canPunch = leftArm.getValue() != ToHitData.IMPOSSIBLE                                || rightArm.getValue() != ToHitData.IMPOSSIBLE;                setPunchEnabled(canPunch);                                // kick?                ToHitData leftLeg = KickAttackAction.toHit                   (client.game, cen, target, KickAttackAction.LEFT);                ToHitData rightLeg = KickAttackAction.toHit                   (client.game, cen, target, KickAttackAction.RIGHT);                boolean canKick = leftLeg.getValue() != ToHitData.IMPOSSIBLE                               || rightLeg.getValue() != ToHitData.IMPOSSIBLE;                if (client.game.getOptions().booleanOption("maxtech_mulekicks")) {                    ToHitData rightRearLeg = KickAttackAction.toHit                       (client.game, cen, target, KickAttackAction.RIGHTMULE);                    ToHitData leftRearLeg = KickAttackAction.toHit                       (client.game, cen, target, KickAttackAction.LEFTMULE);                    canKick |= (leftRearLeg.getValue() != ToHitData.IMPOSSIBLE)                            || (rightRearLeg.getValue() != ToHitData.IMPOSSIBLE);                }                setKickEnabled(canKick);                                // how about push?                ToHitData push = PushAttackAction.toHit                   (client.game, cen, target);                setPushEnabled(push.getValue() != ToHitData.IMPOSSIBLE);                                // clubbing?                Mounted club = Compute.clubMechHas(ce());                if (club != null) {                    ToHitData clubToHit = ClubAttackAction.toHit                       (client.game, cen, target, club);                    setClubEnabled(clubToHit.getValue() != ToHitData.IMPOSSIBLE);                } else {                    setClubEnabled(false);                }                // Thrash at infantry?                ToHitData thrash = new ThrashAttackAction(cen, target).toHit                   (client.game);                setThrashEnabled( thrash.getValue() != ToHitData.IMPOSSIBLE );                                // make a Protomech physical attack?                ToHitData proto = ProtomechPhysicalAttackAction.toHit                   ( client.game, cen, target);                setProtoEnabled(proto.getValue() != ToHitData.IMPOSSIBLE);            }            // Brush off swarming infantry or iNarcPods?            ToHitData brushRight = BrushOffAttackAction.toHit                ( client.game, cen, target, BrushOffAttackAction.RIGHT );            ToHitData brushLeft = BrushOffAttackAction.toHit                ( client.game, cen, target, BrushOffAttackAction.LEFT );            boolean canBrush = (brushRight.getValue() != ToHitData.IMPOSSIBLE||                                brushLeft.getValue() != ToHitData.IMPOSSIBLE);            setBrushOffEnabled( canBrush );        } else {            setPunchEnabled(false);            setPushEnabled(false);            setKickEnabled(false);            setClubEnabled(false);            setBrushOffEnabled(false);            setThrashEnabled(false);            setProtoEnabled(false);        }    }