예제 #1
0
 public void ShuffleInExtraCards(IDeckDict <D> extraCards) //this is needed for games like life card game where some cards can't be in hand but must be in deck.
 {
     foreach (var thisCard in extraCards)
     {
         if (DeckStyle == EnumStyleType.AlwaysKnown)
         {
             thisCard.IsUnknown = false;
         }
         else
         {
             thisCard.IsUnknown = true;
         }
     }
     _objectList.AddRange(extraCards);
     _objectList.ShuffleList();//i think we need this too.
 }