Beispiel #1
0
        private void DisplayCard(uc_frog_card p_usercontrol, FrogCard p_frogcard)
        {
            p_usercontrol.pb_top.BackColor    = p_frogcard.top.color;
            p_usercontrol.pb_left.BackColor   = p_frogcard.left.color;
            p_usercontrol.pb_right.BackColor  = p_frogcard.right.color;
            p_usercontrol.pb_bottom.BackColor = p_frogcard.bottom.color;

            p_usercontrol.lbl_top.Text    = p_frogcard.top.body_part;
            p_usercontrol.lbl_left.Text   = p_frogcard.left.body_part;
            p_usercontrol.lbl_right.Text  = p_frogcard.right.body_part;
            p_usercontrol.lbl_bottom.Text = p_frogcard.bottom.body_part;

            p_usercontrol.lbl_card_nbr.Text  = p_frogcard.card_nbr.ToString();
            p_usercontrol.lbl_rotations.Text = "r: " + p_frogcard.rotations.ToString();
        }
Beispiel #2
0
        // Load the Deck with the cards
        public void LoadDeck()
        {
            _frog_deck[0] = new FrogCard(
                0,
                new FrogPart(System.Drawing.Color.Blue, "head"),
                new FrogPart(System.Drawing.Color.Yellow, "butt"),
                new FrogPart(System.Drawing.Color.Green, "butt"),
                new FrogPart(System.Drawing.Color.Red, "butt")
                );


            _frog_deck[1] = new FrogCard(
                1,
                new FrogPart(System.Drawing.Color.Red, "butt"),
                new FrogPart(System.Drawing.Color.Yellow, "head"),
                new FrogPart(System.Drawing.Color.Blue, "butt"),
                new FrogPart(System.Drawing.Color.Green, "butt")
                );

            _frog_deck[2] = new FrogCard(
                2,
                new FrogPart(System.Drawing.Color.Yellow, "butt"),
                new FrogPart(System.Drawing.Color.Green, "head"),
                new FrogPart(System.Drawing.Color.Blue, "butt"),
                new FrogPart(System.Drawing.Color.Red, "head")
                );

            _frog_deck[3] = new FrogCard(
                3,
                new FrogPart(System.Drawing.Color.Green, "butt"),
                new FrogPart(System.Drawing.Color.Green, "head"),
                new FrogPart(System.Drawing.Color.Yellow, "butt"),
                new FrogPart(System.Drawing.Color.Red, "butt")
                );

            _frog_deck[4] = new FrogCard(
                4,
                new FrogPart(System.Drawing.Color.Green, "head"),
                new FrogPart(System.Drawing.Color.Red, "butt"),
                new FrogPart(System.Drawing.Color.Yellow, "head"),
                new FrogPart(System.Drawing.Color.Blue, "butt")
                );
            //
            _frog_deck[5] = new FrogCard(
                5,
                new FrogPart(System.Drawing.Color.Green, "head"),
                new FrogPart(System.Drawing.Color.Yellow, "butt"),
                new FrogPart(System.Drawing.Color.Red, "butt"),
                new FrogPart(System.Drawing.Color.Blue, "head")
                );

            _frog_deck[6] = new FrogCard(
                6,
                new FrogPart(System.Drawing.Color.Red, "butt"),
                new FrogPart(System.Drawing.Color.Red, "head"),
                new FrogPart(System.Drawing.Color.Blue, "head"),
                new FrogPart(System.Drawing.Color.Green, "butt")
                );

            _frog_deck[7] = new FrogCard(
                7,
                new FrogPart(System.Drawing.Color.Green, "head"),
                new FrogPart(System.Drawing.Color.Blue, "head"),
                new FrogPart(System.Drawing.Color.Yellow, "butt"),
                new FrogPart(System.Drawing.Color.Red, "head")
                );

            _frog_deck[8] = new FrogCard(
                8,
                new FrogPart(System.Drawing.Color.Blue, "butt"),
                new FrogPart(System.Drawing.Color.Yellow, "head"),
                new FrogPart(System.Drawing.Color.Yellow, "head"),
                new FrogPart(System.Drawing.Color.Blue, "head")
                );
        }