public void remove(Entity entity) {
for (Enumeration<?> e = getAllChildren(); e.hasMoreElements();) {
BranchGroup bg = (BranchGroup)e.nextElement();
AttackAction a = (AttackAction)bg.getUserData();
if (a != null && a.getEntityId() == entity.getId()) bg.detach();
}
}
public void clear() {
for (Enumeration<?> e = getAllChildren(); e.hasMoreElements();) {