예제 #1
0
        public override object Copy(ICCCopyable pZone)
        {
            CCTwirl pCopy;
            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = (CCTwirl) (pZone);
            }
            else
            {
                pCopy = new CCTwirl();
                pZone = (pCopy);
            }

            base.Copy(pZone);

            pCopy.initWithDuration(m_fDuration, m_sGridSize, m_position, m_nTwirls, m_fAmplitude);
            return pCopy;
        }
예제 #2
0
        public override object Copy(ICCCopyable pZone)
        {
            CCTwirl pCopy;

            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = (CCTwirl)(pZone);
            }
            else
            {
                pCopy = new CCTwirl();
                pZone = (pCopy);
            }

            base.Copy(pZone);

            pCopy.InitWithPosition(m_position, m_nTwirls, m_fAmplitude, m_sGridSize, m_fDuration);
            return(pCopy);
        }