private AbilityRolls RollTypeZero() { AbilityRolls currentRolls = new AbilityRolls(); DSix d6rollStuff = new DSix(); List <int> rollSet = new List <int>(); currentRolls.AbilityOne = 15; for (int i = 0; i < 5; i++) { FillSet(d6rollStuff, rollSet); } return(null); }
private List <AbilityRolls> RollAbilityScores(string numberOfRolls, int typeOfRoll) { List <AbilityRolls> CurrentDiceSetList = new List <AbilityRolls>(); int numOfRolls = 0; int.TryParse(numberOfRolls, out numOfRolls); numOfRolls = numOfRolls * 1000; for (int j = 0; j < numOfRolls; j++) { AbilityRolls currentAbilityRolls = new AbilityRolls(); currentAbilityRolls = RollAbilitySet(typeOfRoll); CurrentDiceSetList.Add(currentAbilityRolls); } return(CurrentDiceSetList); }
private AbilityRolls RollAbilitySet(int typeOfRoll) { AbilityRolls currentAbilityRoll = new AbilityRolls(); //if (typeOfRoll == 0) //{ // currentAbilityRoll = RollTypeZero(); //} if (typeOfRoll == 1) { currentAbilityRoll = RollTypeOne(); } if (typeOfRoll == 2) { currentAbilityRoll = RollTypeTwo(); } if (typeOfRoll == 3) { currentAbilityRoll = RollTypeThree(); } currentAbilityRoll = RollTypeZero(); return(currentAbilityRoll); }