public void refreshAttacks(){
  clearAllAttacks();
  for (Enumeration<EntityAction> i=game.getActions(); i.hasMoreElements(); ) {
    EntityAction ea=i.nextElement();
    if (ea instanceof AttackAction) {
      addAttack((AttackAction)ea);
    }
  }
  for (Enumeration<AttackAction> i=game.getCharges(); i.hasMoreElements(); ) {
    EntityAction ea=i.nextElement();
    if (ea instanceof PhysicalAttackAction) {
      addAttack((AttackAction)ea);
    }
  }
  repaint(100);
}

public void refreshAttacks ( ) { clearAllAttacks ( ) ; for ( Enumeration < EntityAction > i = game . getActions ( ) ; i . hasMoreElements ( ) ; ) { EntityAction ea = i . nextElement ( ) ; if ( ea instanceof AttackAction ) { addAttack ( ( AttackAction ) ea ) ; } } for ( Enumeration < AttackAction > i = game . getCharges ( ) ; i . hasMoreElements ( ) ; ) { EntityAction ea = i . nextElement ( ) ; if ( ea instanceof PhysicalAttackAction ) { addAttack ( ( AttackAction ) ea ) ; } } repaint ( 100 ) ; }
clears out all attacks and re - adds the ones in the current game .
