Exemplo n.º 1
0
 private void HandleBelote(Player player, Card card)
 {
     if (player.HasBelote() && card.IsBeloteCard(_trump))
     {
         if (player.GetBeloteCards() == 2)
         {
             player.SetBeloteCards((short)(player.GetBeloteCards() - 1));
             Broadcast("MSG [" + player.GetName() + "] BELOTE!");
         }
         else if (player.GetBeloteCards() == 1)
         {
             player.SetBeloteCards((short)(player.GetBeloteCards() - 1));
             Broadcast("MSG [" + player.GetName() + "] RE-BELOTE!");
             _teams[player.GetId() % 2].AddScore(20);
             _teams[player.GetId() % 2].SetHasBelote(true);
         }
     }
 }