Ejemplo n.º 1
0
        //button pickup clicked ends human turn and picks up cards
        private void btnPickUp_Click(object sender, EventArgs e)
        {
            roundNumber += 1;

            GameLog.LogRound(GameLog, roundNumber, myPlayerOne, myPlayerTwo, myRiver);

            for (int i = 0; i < myRiver.length(); i++)
            {
                myHandOne.AddCardToHand(myRiver.GetCard(i));
            }
            myRiver.ClearRiver();
            try
            {
                myPlayerOne.RefillHand(myDeck);
                myPlayerTwo.RefillHand(myDeck);
            }
            catch (Exception)
            {
            }
            //myPlayerOne.setIsAttacking(true);
            //myPlayerOne.setIsDefending(false);
            //myPlayerTwo.setIsAttacking(false);
            myPlayerTwo.setIsDefending(true);


            lblComputerAttacking.Visible = false;
            lblHumanAttacking.Visible    = true;

            btnPickUp.Enabled      = false;
            btnCeaseAttack.Enabled = true;

            DisplayAllCardLists();
        }