Added factory method to get battle parameters from XML