Exemple #1
0
        public void SwapPositions(int pos, int pos2)
        {
            DeckCard dc = Cards[pos];

            Cards[pos]  = Cards[pos2];
            Cards[pos2] = dc;
        }
Exemple #2
0
        public DeckCard DrawCard()
        {
            if (Cards == null || DeckPosition >= Cards.Count)
            {
                return(null);
            }

            DeckCard returnCard = Cards[DeckPosition];

            DeckPosition++;

            return(returnCard);
        }
Exemple #3
0
 public void AddCard(DeckCard d)
 {
     Cards.Add(d);
 }