public void resetExtremeGravityPSRs(Entity entity) { PilotingRollData roll; Vector rollsToRemove = new Vector(); int i=0;   for (i=0; i < extremeGravityRolls.size(); i++) { roll = (PilotingRollData)extremeGravityRolls.elementAt(i); if ( roll.getEntityId()==entity.getId() ) { rollsToRemove.addElement(new Integer(i)); }; };   for (i=rollsToRemove.size()-1; i > -1; i--) { extremeGravityRolls.removeElementAt( ((Integer)rollsToRemove.elementAt(i)).intValue() ); };
public void resetExtremeGravityPSRs() { extremeGravityRolls.removeAllElements();
    public void resetExtremeGravityPSRs(Entity entity) {        PilotingRollData roll;        Vector rollsToRemove = new Vector();        int i=0;        // first, find all the rolls belonging to the target entity        for (i=0; i < extremeGravityRolls.size(); i++) {            roll = (PilotingRollData)extremeGravityRolls.elementAt(i);            if ( roll.getEntityId()==entity.getId() ) {               rollsToRemove.addElement(new Integer(i));            };        };        // now, clear them out        for (i=rollsToRemove.size()-1; i > -1; i--) {            extremeGravityRolls.removeElementAt( ((Integer)rollsToRemove.elementAt(i)).intValue() );        };    }