Example #1
0
File: Rotate.cs Project: nistck/Jx
        /// <summary>
        /// Default constructor.
        /// </summary>
        public Rotate()
        {
            _hand.Bitmap    = Resource.Rotate.ToBitmap();
            _hand.Selected  = true;
            _hand.Dimension = new Size(9, 9);

            Ghost = new GhostCollection();
        }
Example #2
0
        /// <summary>
        /// Clones the GhostCollection.
        /// </summary>
        /// <returns>New GhostCollection.</returns>
        public override object Clone()
        {
            GhostCollection clonedCollection = new GhostCollection();

            foreach (IShape shape in _ghosts)
            {
                clonedCollection.Ghosts.Add(shape.Clone() as IShape);
            }

            return(clonedCollection);
        }