Beispiel #1
0
        public void VillainHandRecognized(CardList villainCards, int seat)
        {
            //TODO: Actions needed:
            // 1. Find player by seat
            // 2. Convert CardList into hands
            // 3. call code below

            Player player = FindPlayer(seat);

            if (null == player)
            {
                Globals.Director.WriteDebug(WRITE_DEBUG, " -- player at seat (" + seat + ") can not be found");
                return;
            }

            Hand muckedCards = new Hand();

            muckedCards.AddCard(villainCards[0]);
            muckedCards.AddCard(villainCards[1]);

            player.IsPlaying = true;
            player.IsDealtHoleCards();
            player.MuckHandAvailable(muckedCards);

            UpdateUI();
        }
Beispiel #2
0
        void parser_PlayerMuckHandAvailable(string playerName, Hand hand)
        {
            Player p = FindPlayer(playerName);

            if (p != null)
            {
                p.MuckHandAvailable(hand);
            }
        }