Пример #1
0
 public Hand(IBlackJackTable black_jack_table)
 {            
     _blackjack_table = black_jack_table;            
     _cards = new List<Card>();            
     id = Guid.NewGuid();
     change_state_to(HandStatus.in_play);
 }
Пример #2
0
 public PlayersHand(Chips chips_wagered, IBlackJackTable black_jack_table, string hand_letter)
     : base(black_jack_table)
 {
     _hand_letter = hand_letter;
     wager        = chips_wagered;
     is_active    = false;
 }
Пример #3
0
 public PlayersHand(Chips chips_wagered, IBlackJackTable black_jack_table, string hand_letter)
     : base(black_jack_table)
 {
     _hand_letter = hand_letter;
     wager = chips_wagered;
     is_active = false;    
 }
Пример #4
0
 public Hand(IBlackJackTable black_jack_table)
 {
     _blackjack_table = black_jack_table;
     _cards           = new List <Card>();
     id = Guid.NewGuid();
     change_state_to(HandStatus.in_play);
 }
        //Constructor
        public Client(IUsersTable usersTable, string name, string endpoint)
        {
            InitializeComponent();

            this.usersTable = usersTable;
            this.name       = name;
            this.endpoint   = endpoint;
            Title           = "BlackJack - " + name;

            // Configure the ABCs of using the BlackJackTable service.
            string        endpointAddress = "net.tcp://" + endpoint + ":12000/21Library/BlackJackTable";
            NetTcpBinding tcpBinding      = new NetTcpBinding();

            tcpBinding.Security.Mode = SecurityMode.None;
            DuplexChannelFactory <IBlackJackTable> channel = new DuplexChannelFactory <IBlackJackTable>(this, tcpBinding, new EndpointAddress(endpointAddress));

            // Activate a BlackJackTable instance.
            blackJackTable = channel.CreateChannel();

            //Add player to table
            blackJackTable.AddPlayer(name);
        }
Пример #6
0
 public DealersHand(IBlackJackTable black_jack_table)
     : base(black_jack_table)
 {
 }
Пример #7
0
 public DealersHand(IBlackJackTable black_jack_table)
     : base(black_jack_table)
 {     }