コード例 #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;
 }
コード例 #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);
        }
コード例 #3
0
ファイル: ImageOnCard.cs プロジェクト: ZUFMON/GitHub
 public bool IsConnect(ImageOnCard img)
 {
     return(img.Color == this.Color && img.Smile != this.Smile);
 }