public override void OnBehaviorCardPicked(ACardNotifBehavior behavior, CardEntity cardEntityPicked) { MoveCardNotifBehavior moveCardBehavior = behavior as MoveCardNotifBehavior; moveCardBehavior.ToStarEntities = behavior.NodeLevel.BoardGameLayer.StarToLinks[behavior.OwnerCardEntity.ParentStar] .Select(pElem => pElem.StarFrom != behavior.OwnerCardEntity.ParentStar ? pElem.StarFrom : pElem.StarTo) .Where(pElem => pElem.CardSocketed == null).ToList(); }
public override void OnBehaviorStart(ACardNotifBehavior behavior) { behavior.NbBehaviorUse = 1; MoveCardNotifBehavior moveCardBehavior = behavior as MoveCardNotifBehavior; moveCardBehavior.FromStarEntities = behavior.NodeLevel.BoardGameLayer.StarToLinks[behavior.OwnerCardEntity.ParentStar] .Select(pElem => pElem.StarFrom != behavior.OwnerCardEntity.ParentStar ? pElem.StarFrom : pElem.StarTo) .Where(pElem => pElem.CardSocketed != null && pElem.CardSocketed.Card.CanBeMoved).ToList(); }
public override void OnBehaviorStart(ACardNotifBehavior behavior) { behavior.NbBehaviorUse = 1; MoveCardNotifBehavior moveCardBehavior = behavior as MoveCardNotifBehavior; moveCardBehavior.FromStarEntities = behavior.NodeLevel.BoardGameLayer.StarSystem .Where(pElem => pElem.CardSocketed != null && pElem.CardSocketed.Card.CanBeMoved && pElem.CardSocketed.Card.CurrentOwner == behavior.OwnerCardEntity.Card.CurrentOwner && pElem.CardSocketed != behavior.OwnerCardEntity).ToList(); }
public override void OnBehaviorCardPicked(ACardNotifBehavior behavior, CardEntity cardEntityPicked) { MoveCardNotifBehavior moveCardBehavior = behavior as MoveCardNotifBehavior; moveCardBehavior.ToStarEntities = behavior.NodeLevel.BoardGameLayer.StarSystem.Where(pElem => pElem.CardSocketed == null).ToList(); }