private static Outcome parseOutcomeElement(Element outcomeElement){
  boolean depleteWeapon=Boolean.valueOf(outcomeElement.getAttribute(OUTCOME_ATTRIBUTE_DEPLETE_WEAPON));
  boolean incrementEnemies=Boolean.valueOf(outcomeElement.getAttribute(OUTCOME_ATTRIBUTE_INCREMENT_ENEMIES));
  return new Outcome(depleteWeapon,incrementEnemies);
}

private static Outcome parseOutcomeElement ( Element outcomeElement ) { boolean depleteWeapon = Boolean . valueOf ( outcomeElement . getAttribute ( OUTCOME_ATTRIBUTE_DEPLETE_WEAPON ) ) ; boolean incrementEnemies = Boolean . valueOf ( outcomeElement . getAttribute ( OUTCOME_ATTRIBUTE_INCREMENT_ENEMIES ) ) ; return new Outcome ( depleteWeapon , incrementEnemies ) ; }
creates an outcome from a dom element representing an outcome .
