package it.playfellas.superapp.logic.slave.game1;

import java.util.List;

import it.playfellas.superapp.logic.tiles.Tile;

/**
 * Created by affo on 03/08/15.
 */
public class IntruderDispenserInverter extends IntruderTileDispenser {
    private IntruderTileDispenser normal;

    public IntruderDispenserInverter(IntruderTileDispenser normalDispenser) {
        this.normal = normalDispenser;
    }

    @Override
    List<Tile> getTargets(int n) {
        return normal.getEasy(n, normal.getTargets(n));
    }

    @Override
    List<Tile> getCritical(int n, List<Tile> targets) {
        return normal.getTargets(n);
    }

    @Override
    List<Tile> getEasy(int n, List<Tile> targets) {
        return normal.getTargets(n);
    }
}

@@ -456,54 +456,291 @@
     
-return normal.getEasy(n, normal.getTargets(n))
+int noCritical = n / 2;%0A        int noEasy = n - noCritical;%0A        List%3CTile%3E tgts = normal.getTargets(n);%0A        List%3CTile%3E easy = normal.getEasy(noEasy, tgts);%0A        List%3CTile%3E critical = normal.getCritical(noCritical, tgts);%0A        easy.addAll(critical);%0A        return easy
 ;%0A  

return targets in the right number both from easy and critical distractors