internal override void Dispose() { base.Dispose(); ShowDeck.Image = null; ShowDeck.Dispose(); ShowTrash.Image = null; ShowTrash.Dispose(); }
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; } } } }