Exemplo n.º 1
0
        /// <summary>
        /// Move the element.
        /// </summary>
        /// <param name="x"> The x value of the position to move to. </param>
        /// <param name="y"> The y value of the position to move to. </param>
        public void Move(int x, int y)
        {
            if (_pattern.CurrentCanMove != 1)
            {
                return;
            }

            _pattern.Move(x, y);
        }
 public bool Move(int xCoordinate, int yCoordinate)
 {
     if (_transformPattern == null)
     {
         return(false);
     }
     _transformPattern.Move(xCoordinate, yCoordinate);
     return(true);
 }