Exemplo n.º 1
0
        public override object GetDeepCopy()
        {
            IController clone = new RotationController("clone - " + this.ID, //deep
                                                       this.ControllerType,  //deep
                                                       this.rotation);       //deep

            clone.SetControllerPlayStatus(this.PlayStatusType);

            return(clone);
        }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            RotationController other = obj as RotationController;

            if (other == null)
            {
                return(false);
            }
            else if (this == other)
            {
                return(true);
            }

            return(this.rotation.Equals(other.Rotation) &&
                   base.Equals(obj));
        }