public synchronized void removeAttacksFor(Entity e){
  if (e == null) {
    return;
  }
  int entityId=e.getId();
  for (Iterator<AttackSprite> i=attackSprites.iterator(); i.hasNext(); ) {
    AttackSprite sprite=i.next();
    if (sprite.getEntityId() == entityId) {
      i.remove();
    }
  }
  repaint(100);
}

public synchronized void removeAttacksFor ( Entity e ) { if ( e == null ) { return ; } int entityId = e . getId ( ) ; for ( Iterator < AttackSprite > i = attackSprites . iterator ( ) ; i . hasNext ( ) ; ) { AttackSprite sprite = i . next ( ) ; if ( sprite . getEntityId ( ) == entityId ) { i . remove ( ) ; } } repaint ( 100 ) ; }
removes all attack sprites from a certain entity
