/// <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(IDreidel i_Dreidel)
 {
     m_SpinningDreidels--;
 }
 /// <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(IDreidel i_Dreidel)
 {
     if (i_Dreidel.DreidelFrontLetter.Equals(m_PlayerChosenLetter))
     {
         PlayerScore = PlayerScore + i_Dreidel.DreidelScore;
     }
 }
示例#3
0
 public DreidelHttp(IDreidel dreidel)
 {
     Dreidel = dreidel;
 }