Esempio n. 1
0
        //Takes in a string, examines it for rolling method options
        //Then returns the chopped string
        private string DecideRollingMethod(string stringToExamine)
        {
            string localCopy = stringToExamine;

            if (localCopy.Contains('i'))
            {
                rollingMethod = RollingMethod.individual;
                localCopy = localCopy.Replace("i", "");
                localCopy = localCopy.Replace("t", "");
            }
            else if (localCopy.Contains('t'))
            {
                rollingMethod = RollingMethod.total;
                localCopy = localCopy.Replace("i", "");
                localCopy = localCopy.Replace("t", "");
            }

            return localCopy;
        }
Esempio n. 2
0
 public CharacterBuilder()
 {
     Method        = RollingMethod.Simple;
     AbilityScores = new Hashtable(6);
 }
Esempio n. 3
0
 //Just creates a new DiceHandler
 public DiceHandler()
 {
     rollingMethod = RollingMethod.total;
 }