Esempio n. 1
0
File: Die.cs Progetto: dordwin/Dice
 /// <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;
 }
Esempio n. 2
0
File: Die.cs Progetto: dordwin/Dice
 /// <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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }