public void MoveCard(Card card, Region toWhere, int NumberDes) { if (toWhere.Equals(this.Deck) || toWhere.Equals(this.Orb)) { card.FrontShown = false; card.Visible = false; } else { if (!((toWhere.Equals(this.Kizuna) || toWhere.Equals(this.KizunaUsed)) && (card.BelongedRegion().Equals(this.Kizuna) || card.BelongedRegion().Equals(this.KizunaUsed)))) { card.FrontShown = true; card.Visible = true; } } Region fromWhere = card.BelongedRegion(); fromWhere.CardList.Remove(card); toWhere.CardList.Insert(NumberDes, card); }
public void MoveCard(Card card, Region toWhere, int NumberDes) { Region fromWhere = card.BelongedRegion(); if (fromWhere.Equals(Overlay)) { List<Card> temp = new List<Card>(); temp.AddRange(FrontField.CardList); temp.AddRange(BackField.CardList); foreach (Card parentCard in temp) { if (parentCard.OverlayCardNo.Contains(card.NumberInDeck)) { parentCard.OverlayCardNo.Remove(card.NumberInDeck); break; } } } if (toWhere.Equals(Deck) || toWhere.Equals(Orb)) { card.FrontShown = false; card.Visible = false; } else { if (!((toWhere.Equals(Kizuna) || toWhere.Equals(KizunaUsed)) && (card.BelongedRegion().Equals(Kizuna) || card.BelongedRegion().Equals(KizunaUsed)))) { card.FrontShown = true; card.Visible = true; } } if (!((toWhere.Equals(FrontField) || toWhere.Equals(BackField)) && (card.BelongedRegion().Equals(FrontField) || card.BelongedRegion().Equals(BackField)))) { card.SolCounter = 0; card.LunaCounter = 0; } fromWhere.CardList.Remove(card); toWhere.CardList.Insert(NumberDes, card); }
public void MoveCard(Region fromWhere, int Number, Region toWhere, int NumberDes ) { if (toWhere.Equals(this.Deck) || toWhere.Equals(this.Orb)) { fromWhere.CardList[Number].FrontShown = false; fromWhere.CardList[Number].Visible = false; } else { if (!((toWhere.Equals(this.Kizuna) || toWhere.Equals(this.KizunaUsed)) && (fromWhere.Equals(this.Kizuna) || fromWhere.Equals(this.KizunaUsed)))) { fromWhere.CardList[Number].FrontShown = true; fromWhere.CardList[Number].Visible = true; } } toWhere.CardList.Insert(NumberDes, fromWhere.CardList[Number]); fromWhere.CardList.RemoveAt(Number); }
public void MoveCard(Region fromWhere, int Number, Region toWhere, int NumberDes) { if (fromWhere.Equals(Overlay)) { List<Card> temp = new List<Card>(); temp.AddRange(FrontField.CardList); temp.AddRange(BackField.CardList); foreach (Card card in temp) { if (card.OverlayCardNo.Contains(fromWhere.CardList[Number].NumberInDeck)) { card.OverlayCardNo.Remove(fromWhere.CardList[Number].NumberInDeck); break; } } } if (toWhere.Equals(Deck) || toWhere.Equals(Orb)) { fromWhere.CardList[Number].FrontShown = false; fromWhere.CardList[Number].Visible = false; } else { if (!((toWhere.Equals(Kizuna) || toWhere.Equals(KizunaUsed)) && (fromWhere.Equals(Kizuna) || fromWhere.Equals(KizunaUsed)))) { fromWhere.CardList[Number].FrontShown = true; fromWhere.CardList[Number].Visible = true; } } if (!((toWhere.Equals(FrontField) || toWhere.Equals(BackField)) && (fromWhere.Equals(FrontField) || fromWhere.Equals(BackField)))) { fromWhere.CardList[Number].SolCounter = 0; fromWhere.CardList[Number].LunaCounter = 0; } toWhere.CardList.Insert(NumberDes, fromWhere.CardList[Number]); fromWhere.CardList.RemoveAt(Number); }