Entity entity = (Entity) target_array.get(i);
Entity entity = (Entity) target_array.elementAt(i);
    public GAAttack(TestBot tb, CEntity attacker, Vector attack, int population, int generations, boolean isEnemy) {        super(attack.size() + 1, population, .7, 5, generations, .4);        this.attack = attack;        this.attacker = attacker;        this.game = tb.game;        this.target_array = game.getEntitiesVector();        Vector temp = new Vector();        for (int i = 0; i < target_array.size(); i++) {            Entity entity = (Entity) target_array.get(i);            if (entity.isEnemyOf(attacker.entity) && entity.isDeployed()) {                temp.add(new Integer(i));            }        }        targets = new CEntity.Table(tb);        this.valid_target_indexes = temp;        if (isEnemy || (attacker.last != null && (!attacker.last.inDanger || attacker.last.doomed))) {            this.overheat_eligible = true;        }    }