Esempio n. 1
0
 // 置换主牌
 public bool exchageMasterCard(ref Card changer)
 {
     if (masterCard == null) { return false; }
     Card exc = masterCard;
     masterCard = changer;
     changer = exc;
     return true;
 }
Esempio n. 2
0
 // 取出一张牌
 public Card getCard()
 {
     if (this.count() == 0) { return null; }
     Card myref = masterCard;
     if (heapList.Count == 0)
     {
         masterCard = null;
         return myref;
     }
     myref = heapList[0];
     heapList.RemoveAt(0);
     return myref;
 }