public void CardPlaced(UICard inPlacedCard, CardZoneType PlacedZone) { PlayingCard PlacedCard = (PlayingCard)inPlacedCard; if (!SecondSelect) { SendAction(new ActionOrder(new PlaceCard_Action(PlacedCard.GetEntity(), PlacedZone), null, null)); } UpdateUI(); if ((PlacedCard).IsPlaced() && PlacedCard.GetEntity().PAHolder.HasAction()) { StartPlacedAction(PlacedCard); } }
public void CardPlaced(UICard PlacedCard, CardZoneType PlacedZone) { if (PlacedCard.GetEntity().IsUnit() == (PlacedZone.getType() == ZoneType.Field)) { RemoveFromList(PlacedCard.GetEntity()); // Hack? Use owner index to specify whether this // is a deck zone or a library zone. // 0 = Deck // 1 = Library if (PlacedZone.getOwnerIndex() == 0) { mDeckCards.AddCard(PlacedCard.GetEntity()); } else { mLibraryCards.AddCard(PlacedCard.GetEntity()); } if (VerifyDeck()) { UpdateCardCollection(); } } }
public void CardPlaced(UICard PlacedCard, CardZoneType PlacedZone) { }