Esempio n. 1
0
        public RollResult SingleRollAsResult(Die die)
        {
            int        result = SingleRollAsInt(die);
            RollResult ret    = new RollResult(die, result);

            return(ret);
        }
Esempio n. 2
0
        public RollResultSet RollList(List <Die> diceList)
        {
            RollResultSet ret = new RollResultSet();

            foreach (Die die in diceList)
            {
                RollResult result = SingleRollAsResult(die);
                ret.ResultList.Add(result);
            }

            return(ret);
        }