private void animateOppSafeguards() { Models.CardGUIModel safeGuard; for (int i = 1; i <= 5; i++) { Animations.MoveAnimation animation; // add the actual card safeGuard = new Models.CardGUIModel(null, this, AnimationAndEventsConstants.oppDeckLocation, Visibility.Hidden, i); grdParent.Children.Add(safeGuard.Border); animation = new Animations.MoveAnimation( grdParent, grdOppSafeguards, grdParent, null, listOppSafeGuardZone, safeGuard, AnimationAndEventsConstants.DESTINATIONSAFEGUARD); animation.setSpeed(10); animation.startsWithHiddenOrigin = true; addEvent(new Event(animation)); } }
private void animateInitialHand() { Models.CardGUIModel card; for (int i = 0; i < 5; i++) { Animations.MoveAnimation animation; card = new Models.CardGUIModel(ctrl.getCardFromInitialHand(), this, AnimationAndEventsConstants.ownDeckLocation, Visibility.Hidden); grdParent.Children.Add(card.Border); animation = new Animations.MoveAnimation( grdParent, grdHand, grdParent, null, listHand, card, AnimationAndEventsConstants.DESTINATIONOWNHAND); animation.setSpeed(10); animation.startsWithHiddenOrigin = true; addEvent(new Event(animation)); } }