Beispiel #1
0
        /// <summary>
        /// Creates a new dynamic dice cup.
        /// </summary>
        /// <param name="sides">Collection of side numbers representing unique dice</param>
        public DynamicDiceCup(ICollection <int> sides)
        {
            AllDice = new List <IDice>();

            foreach (NDice dice in NDice.MultipleDice(sides))
            {
                AllDice.Add(dice);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new dynamic dice cup.
        /// </summary>
        /// <param name="sides">Side numbers representing each unique dice</param>
        public DynamicDiceCup(params int[] sides)
        {
            AllDice = new List <IDice>();

            foreach (NDice dice in NDice.MultipleDice(sides))
            {
                AllDice.Add(dice);
            }
        }
Beispiel #3
0
        /// <summary>
        /// Creates a new dynamic dice cup.
        /// </summary>
        /// <param name="sides">The number of sides on each dice</param>
        /// <param name="noOfDice">Number of dice to create</param>
        public DynamicDiceCup(int sides, int noOfDice)
        {
            AllDice = new List <IDice>();

            foreach (NDice dice in NDice.MultipleDice(sides, noOfDice))
            {
                AllDice.Add(dice);
            }
        }
Beispiel #4
0
        /// <summary>
        /// Creates a new dice cup.
        /// </summary>
        /// <param name="sides">Collection of side numbers representing unique dice</param>
        public DiceCup(ICollection <int> sides)
        {
            List <NDice> allDice = new List <NDice>();

            foreach (NDice dice in NDice.MultipleDice(sides))
            {
                allDice.Add(dice);
            }

            AllDice = allDice.ToArray();
        }
Beispiel #5
0
        /// <summary>
        /// Creates a new dice cup.
        /// </summary>
        /// <param name="sides">Side numbers representing each unique dice</param>
        public DiceCup(params int[] sides)
        {
            List <NDice> allDice = new List <NDice>();

            foreach (NDice dice in NDice.MultipleDice(sides))
            {
                allDice.Add(dice);
            }

            AllDice = allDice.ToArray();
        }
Beispiel #6
0
        /// <summary>
        /// Creates a new dice cup.
        /// </summary>
        /// <param name="sides">The number of sides on each dice</param>
        /// <param name="noOfDice">Number of dice to create</param>
        public DiceCup(int sides, int noOfDice)
        {
            List <NDice> allDice = new List <NDice>();

            foreach (NDice dice in NDice.MultipleDice(sides, noOfDice))
            {
                allDice.Add(dice);
            }

            AllDice = allDice.ToArray();
        }