Exemple #1
0
        public CardSelector GetSelectedCards()
        {
            CardSelector selected = m_selector;
            if (m_nextSelector != null)
            {
                m_selector = m_nextSelector;
                m_nextSelector = null;
            }
            else
                m_selector = null;

            return selected;
        }
Exemple #2
0
 public void SelectNextCard(IList<int> ids)
 {
     m_nextSelector = new CardSelector(ids);
 }
Exemple #3
0
 public void SelectNextCard(CardLocation loc)
 {
     m_nextSelector = new CardSelector(loc);
 }
Exemple #4
0
 public void SelectNextCard(IList<ClientCard> cards)
 {
     m_nextSelector = new CardSelector(cards);
 }
Exemple #5
0
 public void SelectNextCard(int cardId)
 {
     m_nextSelector = new CardSelector(cardId);
 }
Exemple #6
0
 public void SelectCard(CardLocation loc)
 {
     m_selector = new CardSelector(loc);
 }
Exemple #7
0
 public void SelectNextCard(ClientCard card)
 {
     m_nextSelector = new CardSelector(card);
 }
Exemple #8
0
 public void SelectCard(IList<int> ids)
 {
     m_selector = new CardSelector(ids);
 }
Exemple #9
0
 public void SelectCard(int cardId)
 {
     m_selector = new CardSelector(cardId);
 }
Exemple #10
0
 public void SelectCard(IList<ClientCard> cards)
 {
     m_selector = new CardSelector(cards);
 }
Exemple #11
0
 public void SelectCard(ClientCard card)
 {
     m_selector = new CardSelector(card);
 }
Exemple #12
0
 /// <summary>
 /// Called when it's a new phase.
 /// </summary>
 public void OnNewPhase()
 {
     m_selector = null;
     m_nextSelector = null;
     m_option = -1;
     if (Duel.Player == 0 && Duel.Phase == Phase.Draw)
         m_dialogs.SendNewTurn();
 }