/// <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; }
/// <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; }
/// <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; }