示例#1
0
 public PlayerApiModel()
 {
     this.QuitGame         = false;
     this.CurrentlyPlaying = false;
     this.Funds            = -1;
     this.PlayerId         = Guid.NewGuid();
     PlayerHand            = new HandApiModel();
 }
示例#2
0
        public List <HandApiModel> getFinalHands()
        {
            List <HandApiModel> playerHands = new List <HandApiModel>();

            foreach (PlayerApiModel p in this.players)
            {
                HandApiModel h = p.PlayerHand;
                playerHands.Add(h);
            }
            playerHands.Add(dealer.PlayerHand);
            return(playerHands);
        }
示例#3
0
        public List <HandApiModel> getPlayerHands()
        {
            List <HandApiModel> playerHands = new List <HandApiModel>();

            foreach (PlayerApiModel p in players)
            {
                HandApiModel h = p.PlayerHand;
                playerHands.Add(h);
            }

            return(playerHands);
        }