Exemplo n.º 1
0
        public void Assign(AbstractCard card)
        {
            if ((this.faceSide == null) || (!(this.faceSide.GetType().Equals(card.faceSide.GetType())))) {
                this.faceSide = card.faceSide;
            } else {
                this.faceSide.Assign(card.faceSide);

            }
            if ((this.backSide == null) || (!(this.backSide.GetType().Equals(card.backSide.GetType())))) {
                this.backSide = card.backSide;
            } else {
                this.backSide.Assign(card.backSide);
            }

              this.mark = card.mark;
              this.faceUp = card.faceUp;
              this.hover = card.hover;
        }
Exemplo n.º 2
0
 public void addCard(AbstractCard card)
 {
     cardStack.Add(card);
 }