for (Enumeration i = game.getCharges(); i.hasMoreElements();) { EntityAction ea = (EntityAction)i.nextElement(); if (ea instanceof AttackAction) { addAttack((AttackAction)ea);
if (game.getPhase() == IGame.PHASE_MOVEMENT) { for (Enumeration i = game.getCharges(); i.hasMoreElements();) { EntityAction ea = (EntityAction)i.nextElement(); if (ea instanceof AttackAction) { addAttack((AttackAction)ea); }
    public void refreshAttacks() {        clearAllAttacks();        for (Enumeration i = game.getActions(); i.hasMoreElements();) {            EntityAction ea = (EntityAction)i.nextElement();            if (ea instanceof AttackAction) {                addAttack((AttackAction)ea);            }        }        for (Enumeration i = game.getCharges(); i.hasMoreElements();) {            EntityAction ea = (EntityAction)i.nextElement();            if (ea instanceof AttackAction) {                addAttack((AttackAction)ea);            }        }    }