Esempio n. 1
0
        public string GetDeckCamp()
        {
            CardDescription[] MainCards   = MainDeck.GetCards();
            CardDescription[] SideCards   = SideDeck.GetCards();
            CardDescription[] FusionCards = ExtraDeck.GetCards();

            int ocg = 0;
            int tcg = 0;
            int diy = 0;

            foreach (CardDescription card in MainCards)
            {
                switch (card.cardCamp)
                {
                case CardCamp.OCG:
                    ocg++;
                    break;

                case CardCamp.TCG:
                    tcg++;
                    break;

                case CardCamp.DIY:
                    diy++;
                    break;
                }
            }

            foreach (CardDescription card in SideCards)
            {
                switch (card.cardCamp)
                {
                case CardCamp.OCG:
                    ocg++;
                    break;

                case CardCamp.TCG:
                    tcg++;
                    break;

                case CardCamp.DIY:
                    diy++;
                    break;
                }
            }

            foreach (CardDescription card in FusionCards)
            {
                switch (card.cardCamp)
                {
                case CardCamp.OCG:
                    ocg++;
                    break;

                case CardCamp.TCG:
                    tcg++;
                    break;

                case CardCamp.DIY:
                    diy++;
                    break;
                }
            }

            if (diy > 0)
            {
                return("DIY¿¨×é");
            }
            else if (ocg > 0)
            {
                if (tcg > 0)
                {
                    return("OT»ìÓÿ¨×é");
                }
                else
                {
                    return("OCGרÓÿ¨×é");
                }
            }
            else
            {
                if (tcg > 0)
                {
                    return("TCGרÓÿ¨×é");
                }
                else
                {
                    return("±ê×¼¿¨×é");
                }
            }
        }