Exemplo n.º 1
0
    public CardGroup GetUpgradableCards()
    {
        CardGroup tCardGroup = new CardGroup(CardGroupType.Unspecified);

        for (int i = 0; i < Group.Count; i++)
        {
            AbstractCard tCard = Group[i];
            if (tCard.IsCanUpgrade())
            {
                tCardGroup.Group.Add(tCard);
            }
        }
        return(tCardGroup);
    }
Exemplo n.º 2
0
 private void upgradeAllCardsInGroup(CardGroup _cardGroup)
 {
     for (int i = 0; i < _cardGroup.Group.Count; i++)
     {
         AbstractCard tCard = _cardGroup.Group[i];
         if (tCard.IsCanUpgrade())
         {
             if (_cardGroup.Type == CardGroupType.Hand)
             {
                 //tCard.SuperFlash();
             }
             tCard.Upgrade();
             //tCard.
         }
     }
 }