Example #1
0
        public bool RequestSetPlayer2Deck(IList <Object> mainDeck, IList <Object> sideDeck, IList <Object> extraDeck)
        {
            Deck deck = new Deck();

            deck.Set(mainDeck);
            SideDeck sDeck = new SideDeck();

            sDeck.Set(sideDeck);
            ExtraDeck exDeck = new ExtraDeck();

            exDeck.Set(extraDeck);
            return(player2.setDecks(deck, sDeck, exDeck));
        }
Example #2
0
 /// <summary>
 /// Set the usable decks for the duel(s). Only callable by innards of this code. The Game will
 /// assign decks based on what was selected in the deck creator.
 /// </summary>
 /// <param name="userName">What the Player should be called.</param>
 /// <param name="mainDeck">What the Player will be dueling majorily with</param>
 /// <param name="sideDeck">What the Player is using for tradeouts</param>
 /// <param name="extraDeck">What the Player is using for xyz,synchro,and fusion</param>
 internal bool setDecks(Deck mainDeck, SideDeck sideDeck, ExtraDeck extraDeck)
 {
     if (!hasDecks)
     {
         m_mainDeck  = mainDeck;
         m_sideDeck  = sideDeck;
         m_extraDeck = extraDeck;
         hasDecks    = true;
         return(true);
     }
     else
     {
         return(false);
     }
 }