Ejemplo n.º 1
0
 public bool CanPlayerVote(Vote vote)
 {
     try
     {
         if (playersDict.ContainsKey(vote.UserId))
         {
             var player = playersDict[vote.UserId];
             if (player.Status == Status.Dead)
             {
                 return(false);
             }
             else if (!CurrentRound.IsPlayerAlreadyVoted(vote.UserId))
             {
                 return(true);
             }
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine("CanPlayerVote.ex :" + ex.Message);
     }
     return(false);
 }