예제 #1
0
파일: Die.cs 프로젝트: 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;
 }
예제 #2
0
파일: Die.cs 프로젝트: 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;
 }
예제 #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
파일: ModifiedDie.cs 프로젝트: dordwin/Dice
 /// <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;
 }