Esempio n. 1
0
 public CardCasting(GameData gameData, Card card, CardView target, CardQueue cardQueue)
 {
     this.gameData  = gameData;
     this.card      = card;
     this.target    = target;
     this.cardQueue = cardQueue;
 }
Esempio n. 2
0
        /// <summary>
        /// 从排堆抽一张牌,如果为空,则洗牌重新抽
        /// </summary>
        /// <param name="queue"></param>
        public Card FetchCard(CardQueue queue)
        {
            Card card = queue.FetchCard();

            if (card == null)
            {
                queue.Reset(this);
                card = queue.FetchCard();
            }
            return(card);
        }