Пример #1
0
 /// <summary>
 /// used to instantiate the Die class with a die type
 /// </summary>
 /// <param name="polyType">Uses the Polyhedron enum</param>
 public Die(Polyhedrons polyType = Polyhedrons.d6)
 {
     dieType = polyType;
 }
Пример #2
0
 /// <summary>
 /// allows the Die class to not require the number of sides on the die.  Polyhedrons.d6 is the default.
 /// </summary>
 public Die()
 {
     dieType = Polyhedrons.d6;
 }
Пример #3
0
 /// <summary>
 /// Used to instantiate the ModifiedDie object.
 /// </summary>
 /// <param name="type">a Polyhedrons object</param>
 /// <param name="modifier">an integer to add to the total.  Can be positive or negative.</param>
 public ModifiedDie(Polyhedrons type = Polyhedrons.d6, int modifier = 0)
 {
     dieType   = type;
     mModifier = modifier;
 }
Пример #4
0
 /// <summary>
 /// Used to instantiate the ModifiedDie object.
 /// </summary>
 /// <param name="type">a Polyhedrons object</param>
 /// <param name="modifier">an integer to add to the total.  Can be positive or negative.</param>
 public ModifiedDie(Polyhedrons type = Polyhedrons.d6, int modifier = 0)
 {
     dieType = type;
     mModifier = modifier;
 }
Пример #5
0
 /// <summary>
 /// used to instantiate the Die class with a die type
 /// </summary>
 /// <param name="polyType">Uses the Polyhedron enum</param>
 public Die(Polyhedrons polyType = Polyhedrons.d6)
 {
     dieType = polyType;
 }
Пример #6
0
 /// <summary>
 /// allows the Die class to not require the number of sides on the die.  Polyhedrons.d6 is the default.
 /// </summary>
 public Die()
 {
     dieType = Polyhedrons.d6;
 }