Example #1
0
 public void SitDown(DUser player, int buyIn)
 {
     Player    = player;
     ChipTotal = buyIn;
     Occupied  = true;
     Active    = true;
 }
Example #2
0
 public void Initialize()
 {
     Player     = new DUser();
     PlayerHand = new DHand();
     Pocket     = new List <DCard>();
     Flop       = new List <DCard>();
     PlayerHand.Initialize();
     Occupied  = false;
     Active    = false;
     RoundBid  = 0;
     HandValue = 0;
 }
Example #3
0
 public void StandUp()
 {
     Player.ChipTotal += ChipTotal;
     Player            = new DUser();
     ChipTotal         = 0;
     Occupied          = false;
     PlayerHand        = new DHand();
     Pocket            = new List <DCard>();
     Flop              = new List <DCard>();
     PlayerHand.Initialize();
     SmallBlind = false;
     BigBlind   = false;
     Active     = false;
     RoundBid   = 0;
     HandValue  = 0;
 }
Example #4
0
 public bool JoinGame(DUser player)
 {
     foreach (DSeat seat in Seats)
     {
         if (!seat.Occupied)
         {
             seat.SitDown(player, player.ChipTotal);
             player.ChipTotal -= 0;
             if (RoundStarted)
             {
                 seat.Active = false;
             }
             return(true);
         }
     }
     return(false);
 }