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