/// <summary> /// Adds dice to the arc /// </summary> /// <param name="numDice">The number of dice to add</param> /// <param name="dieType">The type of die to add</param> public void AddDice(int numDice, DieTypeEnum dieType) { switch (dieType) { case DieTypeEnum.Red: for (int i = 0; i < numDice; i++) { _redDice.Add(new RedDie(DieTypeEnum.Red)); } break; case DieTypeEnum.Blue: for (int i = 0; i < numDice; i++) { _blueDice.Add(new BlueDie(DieTypeEnum.Blue)); } break; case DieTypeEnum.Black: for (int i = 0; i < numDice; i++) { _blackDice.Add(new BlackDie(DieTypeEnum.Black)); } break; } }
/// <summary> /// Removes the selected type of dic /// </summary> /// <param name="dieType">The type to remove</param> public void RemoveDie(DieTypeEnum dieType) { switch (dieType) { case DieTypeEnum.Red: _redDice.RemoveAt(0); break; case DieTypeEnum.Blue: _blueDice.RemoveAt(0); break; case DieTypeEnum.Black: _blackDice.RemoveAt(0); break; } }
/// <summary> /// The red Die constructor /// </summary> /// <param name="type">The type of die you want</param> public RedDie(DieTypeEnum type) { _type = type; }
/// <summary> /// The blue die constructor /// </summary> /// <param name="type">The type of die it is</param> public BlueDie(DieTypeEnum type) { _type = type; }
/// <summary> /// Constructor for the die /// </summary> /// <param name="type">The die's type</param> public BlackDie(DieTypeEnum type) { _type = type; }