Coords[] in = Coords.intervening(apos, tpos); for (int i = 0; i < in.length; i++) { for (Enumeration e = game.getEntities(in[i]);e.hasMoreElements();) {
ArrayList<Coords> in = Coords.intervening(apos, tpos); for (Coords c : in) { for (Enumeration e = game.getEntities(c);e.hasMoreElements();) {
    public Vector resolveAction (IGame game) {        Vector reports = new Vector();        Report r;        if(!isPossible(game)) {            r = new Report(3445);            r.subject = this.getEntityId();            r.newlines = 1;            reports.addElement(r);            return reports;        }        final Entity attacker = getEntity(game);        final Coords apos = attacker.getPosition();        final Targetable target = getTarget(game);        final Coords tpos = target.getPosition();        if(attacker.usedSearchlight()) {            r = new Report(3450);            r.subject = this.getEntityId();            r.add(attacker.getDisplayName());            r.newlines = 1;            reports.addElement(r);            return reports;        }        attacker.setUsedSearchlight(true);        Coords[] in = Coords.intervening(apos, tpos); //nb includes attacker & target        for (int i = 0; i < in.length; i++) {            for (Enumeration e = game.getEntities(in[i]);e.hasMoreElements();) {                Entity en = (Entity)e.nextElement();                LosEffects los = LosEffects.calculateLos(game,getEntityId(),en);                if(los.canSee()) {                    en.setIlluminated(true);                    r = new Report(3455);                    r.subject = this.getEntityId();                    r.newlines = 1;                    r.add(en.getDisplayName());                    r.add(attacker.getDisplayName());                    reports.addElement(r);                }            }        }        return reports;    }