Beispiel #1
0
 public CardDefinition(ImageOnCard Top, ImageOnCard Right, ImageOnCard Bottom, ImageOnCard Left, int Position)
 {
     this.Top      = Top;
     this.Left     = Left;
     this.Right    = Right;
     this.Bottom   = Bottom;
     this.Position = Position;
 }
Beispiel #2
0
        /// <summary>
        /// Rotation actual card to Right
        /// </summary>
        /// <param name="card"></param>
        public static CardDefinition RotationCardToRight(CardDefinition c)
        {
            ImageOnCard temp = c.Top;

            c.Top    = c.Right;
            c.Right  = c.Bottom;
            c.Bottom = c.Left;
            c.Left   = temp;
            return(c);
        }
Beispiel #3
0
 public bool IsConnect(ImageOnCard img)
 {
     return(img.Color == this.Color && img.Smile != this.Smile);
 }