예제 #1
0
 internal override void TrashCard(PlayCard p)
 {
     p.Trash(20, 540);
     ShowHand.Remove(p);
     Hand.Remove(p.Name);
     AddTrash(p.Name);
     TrashVisible();
     if (ShowHand.Count != 0)
     {
         ShowHand[0].Sort();
     }
 }
예제 #2
0
 internal override void TrashCard()
 {
     for (int i = 0; i < ShowHand.Count(); i++)
     {
         ShowHand[i].Trash(20, 540);
         AddTrash(ShowHand[i].Name);
         Hand.Remove(ShowHand[i].Name);
         ShowHand.Remove(ShowHand[i]);
         TrashVisible();
     }
     if (ShowHand.Count != 0)
     {
         ShowHand[0].Sort();
     }
 }
예제 #3
0
 internal override void TrashCard(int p)
 {
     if (!Hand.Contains("堀"))
     {
         for (int i = 0; i < p; i++)
         {
             //
             //
             //
             //
             //カードを捨てるAI作る
             //
             //
             //
             //
             ShowHand[0].Trash(740, 10 + 120 * num);
             AddTrash(ShowHand[0].Name);
             Hand.Remove(ShowHand[0].Name);
             ShowHand.Remove(ShowHand[0]);
             TrashVisible();
         }
         ShowHand[0].Sort();
         ShowTrash.BringToFront();
     }
     else
     {
         for (int i = 0; i < ShowHand.Count; i++)
         {
             if (ShowHand[i].Name == "堀")
             {
                 ShowHand[i].Image = global::dominion.Properties.Resources.堀;
                 ShowHand[i].Reaction();
                 break;
             }
         }
     }
 }