Ejemplo n.º 1
0
        public void RemoveFromLine(int Line, GwentCard Card, bool IsToUsed)
        {
            int Ind = GetInd(Card, Lines[Line - 1]);

            Lines[Line - 1].RemoveAt(Ind);
            if (IsUserTurn)
            {
                Net.SendSimpleCommand(this.AffectedCardID, Line, Card.CardID,
                                      Card.IsSpecialAbilitiPerformed, true, IsToUsed);
            }
            if (this.IsUserTurn)
            {
                if (IsToUsed)
                {
                    UsedCards.Add(Card);
                    UsedCardsChanged();
                }
            }
            else
            {
                if (IsToUsed)
                {
                    OponentUsedCards.Add(Card);
                    OponentUsedCardsChanged();
                }
            }
            LineCardsChanged(Line);
        }
Ejemplo n.º 2
0
 public void EndRound()
 {
     this.UserCardsPower = 0;
     foreach (List <GwentCard> Cards in Lines)
     {
         foreach (GwentCard Card in Cards)
         {
             if (Card.CardLine > 3)
             {
                 OponentUsedCards.Add(Card);
             }
             else
             {
                 UsedCards.Add(Card);
             }
         }
         Cards.Clear();
     }
     OponentUsedCardsChanged();
     UsedCardsChanged();
     this.UserCardsPower = 0;
     RoundEnded();
 }