Esempio n. 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;
 }
Esempio n. 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);
        }
Esempio n. 3
0
 public bool IsConnect(ImageOnCard img)
 {
     return(img.Color == this.Color && img.Smile != this.Smile);
 }