示例#1
0
文件: Deck.cs 项目: LeetheM/FCDiceBot
        public void SwapPositions(int pos, int pos2)
        {
            DeckCard dc = Cards[pos];

            Cards[pos]  = Cards[pos2];
            Cards[pos2] = dc;
        }
示例#2
0
文件: Deck.cs 项目: LeetheM/FCDiceBot
        public DeckCard DrawCard()
        {
            if (Cards == null || DeckPosition >= Cards.Count)
            {
                return(null);
            }

            DeckCard returnCard = Cards[DeckPosition];

            DeckPosition++;

            return(returnCard);
        }
示例#3
0
文件: Hand.cs 项目: LeetheM/FCDiceBot
 public void AddCard(DeckCard d)
 {
     Cards.Add(d);
 }