/// <summary> /// Catch a finished spinning event raised by a dreidel and updates the players score /// in case the dreidel current side letter matches the letter that the player chose /// </summary> /// <param name="i_Dreidel">The dreidel that raised the event</param> public void Dreidel_FinishedSpinning(Dreidel i_Dreidel) { if (i_Dreidel.DreidelFrontLetter.Equals(m_PlayerChosenLetter)) { PlayerScore = PlayerScore + k_PlayerScoreIncrement; } }
/// <summary> /// Catch the FinishedSpinning event raised by a dreidel and decrease the number of /// spinning dreidels /// </summary> /// <param name="i_Dreidel">The dreidel the raised the event</param> private void dreidel_FinishedSpinning(Dreidel i_Dreidel) { m_SpinningDreidels--; }