AttackAction aa = (AttackAction)o; if (!(game.getEntity(aa.getEntityId()).isActive())) { continue; }
    private void resolvePhysicalAttacks() {        roundReport.append("\nPhysical Attack Phase\n-------------------\n");                int cen = Entity.NONE;                // add any pending charges        for (Enumeration i = pendingCharges.elements(); i.hasMoreElements();) {            attacks.addElement(i.nextElement());        }        pendingCharges.removeAllElements();                // remove any duplicate attack declarations        cleanupPhysicalAttacks();                // loop thru received attack actions        for (Enumeration i = attacks.elements(); i.hasMoreElements();) {            Object o = i.nextElement();            if (o instanceof PunchAttackAction) {                PunchAttackAction paa = (PunchAttackAction)o;                if (paa.getArm() == PunchAttackAction.BOTH) {                    paa.setArm(PunchAttackAction.LEFT);                    resolvePunchAttack(paa, cen);                    cen = paa.getEntityId();                    paa.setArm(PunchAttackAction.RIGHT);                    resolvePunchAttack(paa, cen);                } else {                    resolvePunchAttack(paa, cen);                    cen = paa.getEntityId();                }            } else if (o instanceof KickAttackAction) {                KickAttackAction kaa = (KickAttackAction)o;                resolveKickAttack(kaa, cen);                cen = kaa.getEntityId();            } else if (o instanceof ClubAttackAction) {                ClubAttackAction caa = (ClubAttackAction)o;                resolveClubAttack(caa, cen);                cen = caa.getEntityId();            } else if (o instanceof PushAttackAction) {                PushAttackAction paa = (PushAttackAction)o;                resolvePushAttack(paa, cen);                cen = paa.getEntityId();            }  else if (o instanceof ChargeAttackAction) {                ChargeAttackAction caa = (ChargeAttackAction)o;                resolveChargeAttack(caa, cen);                cen = caa.getEntityId();            }  else if (o instanceof DfaAttackAction) {                DfaAttackAction daa = (DfaAttackAction)o;                resolveDfaAttack(daa, cen);                cen = daa.getEntityId();            } else {                // hmm, error.            }        }    }