public CardCasting(GameData gameData, Card card, CardView target, CardQueue cardQueue) { this.gameData = gameData; this.card = card; this.target = target; this.cardQueue = cardQueue; }
/// <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); }