コード例 #1
0
 public Boolean CardPlayable(int slct)
 {
     if (slct < CardsInHand)
     {
         Cards card = this.MyHand[slct];
         if (card is Minions)
         {
             Minions pcard = card as Minions;
             if (pcard.GetCost() > CurrentMana)
             {
                 return(false);
             }
             else
             {
                 int cm = MyField.GetCurrentMinions();
                 if (cm < 7)
                 {
                     return(true);
                 }
                 else
                 {
                     return(false);
                 }
             }
         }
         else if (card is Spells)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }