示例#1
0
 public void ExecuteTest()
 {
     BoomCard target = new BoomCard(); // TODO: Initialize to an appropriate value
     TwoServerWindow twoServer = null; // TODO: Initialize to an appropriate value
     Player player = null; // TODO: Initialize to an appropriate value
     string[] cardArgs = null; // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.Execute(twoServer, player, cardArgs);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
示例#2
0
 /// <summary> 
 /// Returns a boom card for deck creation
 /// </summary> 
 public List<Card> GetBoomCard()
 {
     List<Card> cardList = new List<Card>();
     BoomCard bc = new BoomCard();
     bc.Name = "BoomCard";
     bc.SortValue = 5.02;
     bc.Types.Add("Red");
     bc.Types.Add("Blue");
     bc.Types.Add("Green");
     bc.Types.Add("Yellow");
     bc.ValidTypes.Add("Red");
     bc.ValidTypes.Add("Blue");
     bc.ValidTypes.Add("Green");
     bc.ValidTypes.Add("Yellow");
     cardList.Add(bc);
     return cardList;
 }
示例#3
0
        /// <summary> 
        /// Old card creation method - no longer using
        /// </summary> 
        public List<Card> CardList()
        {
            List<Card> cardList = new List<Card>();
            for (int i = 0; i < 4; i++)
            {
                string colour = "";
                switch (i)
                {
                    case 0:
                        colour = "Red";
                        break;
                    case 1:
                        colour = "Blue";
                        break;
                    case 2:
                        colour = "Yellow";
                        break;
                    case 3:
                        colour = "Green";
                        break;
                }

                for (int n = 0; n < 9; n++)
                {
                    Card c = new Card();
                    c.Name = colour + " " + n;
                    c.SortValue = double.Parse(i + ".0" + n);
                    c.Types.Add(colour);
                    c.Types.Add(n.ToString());
                    cardList.Add(c);
                }

                for (int n = 0; n < 2; n++)
                {
                    ColorDraw c = new ColorDraw();
                    int draw = n + 2;
                    c.Name = colour + " Draw " + draw;
                    c.SortValue = double.Parse(i + ".1" + draw);
                    c.Types.Add(colour);
                    c.Types.Add("DRAW " + draw);
                    c.DrawAmount = draw;
                    c.Types.Add(n.ToString());
                    cardList.Add(c);
                }
                PrincessDrink pd = new PrincessDrink();
                pd.Name = String.Format("{0} Princess Drink", colour);
                pd.SortValue = double.Parse(i + ".09");
                pd.Types.Add(colour);
                pd.Types.Add("PRINCESSDRINK");
                cardList.Add(pd);

                pd = new PrincessDrink();
                pd.Name = String.Format("{0} Princess Drink", colour);
                pd.SortValue = double.Parse(i + ".09");
                pd.Types.Add(colour);
                pd.Types.Add("PRINCESSDRINK");
                cardList.Add(pd);

                PlayerTargetedCard targ = new PlayerTargetedCard();
                targ.Name = "Targetted " + colour + " +2";
                targ.SortValue = i + .22;
                targ.Types.Add(colour);
                targ.Types.Add("TARGET 2");
                targ.ValidTypes.Add(colour);
                targ.ValidTypes.Add("TARGET 2");
                targ.DrawAmount = 2;
                cardList.Add(targ);

                LightMasterCard lm = new LightMasterCard();
                lm.Name = colour + " LightMaster";
                lm.SortValue = i + .3;
                lm.Types.Add(colour);
                lm.Types.Add("LIGHTMASTER");
                lm.ValidTypes.Add(colour);
                lm.ValidTypes.Add("LIGHTMASTER");
                cardList.Add(lm);

                SkipCard sc = new SkipCard();
                sc.Name = colour + " Skip";
                sc.SortValue = i + .4;
                sc.Types.Add(colour);
                sc.Types.Add("SKIP");
                sc.ValidTypes.Add(colour);
                sc.ValidTypes.Add("SKIP");
                cardList.Add(sc);

                sc = new SkipCard();
                sc.Name = colour + " Skip";
                sc.SortValue = i + .4;
                sc.Types.Add(colour);
                sc.Types.Add("SKIP");
                sc.ValidTypes.Add(colour);
                sc.ValidTypes.Add("SKIP");
                cardList.Add(sc);
                sc = new SkipCard();
                sc.Name = colour + " Skip";
                sc.SortValue = i + .4;
                sc.Types.Add(colour);
                sc.Types.Add("SKIP");
                sc.ValidTypes.Add(colour);
                sc.ValidTypes.Add("SKIP");
                cardList.Add(sc);

                sc = new SkipCard();
                sc.Name = colour + " Skip";
                sc.SortValue = i + .4;
                sc.Types.Add(colour);
                sc.Types.Add("SKIP");
                sc.ValidTypes.Add(colour);
                sc.ValidTypes.Add("SKIP");
                cardList.Add(sc);

                DoubleDownCard dd = new DoubleDownCard();
                dd.Name = colour + " Double Down";
                dd.SortValue = i + .5;
                dd.Types.Add(colour);
                dd.Types.Add("DOUBLEDOWN");
                dd.ValidTypes.Add(colour);
                dd.ValidTypes.Add("DOUBLEDOWN");
                cardList.Add(dd);

                dd = new DoubleDownCard();
                dd.Name = colour + " Double Down";
                dd.SortValue = i + .5;
                dd.Types.Add(colour);
                dd.Types.Add("DOUBLEDOWN");
                dd.ValidTypes.Add(colour);
                dd.ValidTypes.Add("DOUBLEDOWN");
                cardList.Add(dd);
                dd = new DoubleDownCard();
                dd.Name = colour + " Double Down";
                dd.SortValue = i + .5;
                dd.Types.Add(colour);
                dd.Types.Add("DOUBLEDOWN");
                dd.ValidTypes.Add(colour);
                dd.ValidTypes.Add("DOUBLEDOWN");
                cardList.Add(dd);

            }
            PrincessFufu pf = new PrincessFufu();
            pf.Name = "Princess Fufu";
            pf.SortValue = 5.01;
            pf.Types.Add("Red");
            pf.Types.Add("Blue");
            pf.Types.Add("Green");
            pf.Types.Add("Yellow");
            pf.ValidTypes.Add("Red");
            pf.ValidTypes.Add("Blue");
            pf.ValidTypes.Add("Green");
            pf.ValidTypes.Add("Yellow");
            cardList.Add(pf);

            pf = new PrincessFufu();
            pf.Name = "Princess Fufu";
            pf.SortValue = 5.01;
            pf.Types.Add("Red");
            pf.Types.Add("Blue");
            pf.Types.Add("Green");
            pf.Types.Add("Yellow");
            pf.ValidTypes.Add("Red");
            pf.ValidTypes.Add("Blue");
            pf.ValidTypes.Add("Green");
            pf.ValidTypes.Add("Yellow");
            cardList.Add(pf);

            pf = new PrincessFufu();
            pf.Name = "Princess Fufu";
            pf.SortValue = 5.01;
            pf.Types.Add("Red");
            pf.Types.Add("Blue");
            pf.Types.Add("Green");
            pf.Types.Add("Yellow");
            pf.ValidTypes.Add("Red");
            pf.ValidTypes.Add("Blue");
            pf.ValidTypes.Add("Green");
            pf.ValidTypes.Add("Yellow");
            cardList.Add(pf);

            pf = new PrincessFufu();
            pf.Name = "Princess Fufu";
            pf.SortValue = 5.01;
            pf.Types.Add("Red");
            pf.Types.Add("Blue");
            pf.Types.Add("Green");
            pf.Types.Add("Yellow");
            pf.ValidTypes.Add("Red");
            pf.ValidTypes.Add("Blue");
            pf.ValidTypes.Add("Green");
            pf.ValidTypes.Add("Yellow");
            cardList.Add(pf);

            BoomCard bc = new BoomCard();
            bc.Name = "BoomCard";
            bc.SortValue = 5.02;
            bc.Types.Add("Red");
            bc.Types.Add("Blue");
            bc.Types.Add("Green");
            bc.Types.Add("Yellow");
            bc.ValidTypes.Add("Red");
            bc.ValidTypes.Add("Blue");
            bc.ValidTypes.Add("Green");
            bc.ValidTypes.Add("Yellow");
            cardList.Add(bc);

            Card gc = new Card();
            gc.Name = "Gray";
            gc.SortValue = 5.03;
            gc.Types.Add("Red");
            gc.Types.Add("Blue");
            gc.Types.Add("Green");
            gc.Types.Add("Yellow");
            gc.ValidTypes.Add("Red");
            gc.ValidTypes.Add("Blue");
            gc.ValidTypes.Add("Green");
            gc.ValidTypes.Add("Yellow");
            cardList.Add(gc);

            gc = new Card();
            gc.Name = "Gray";
            gc.SortValue = 5.03;
            gc.Types.Add("Red");
            gc.Types.Add("Blue");
            gc.Types.Add("Green");
            gc.Types.Add("Yellow");
            gc.ValidTypes.Add("Red");
            gc.ValidTypes.Add("Blue");
            gc.ValidTypes.Add("Green");
            gc.ValidTypes.Add("Yellow");
            cardList.Add(gc);
            return cardList;
        }
示例#4
0
 public void BoomCardConstructorTest()
 {
     BoomCard target = new BoomCard();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }