示例#1
0
        public static CCWavesTiles3D actionWithWaves(int wav, float amp, ccGridSize gridSize, float duration)
        {
            CCWavesTiles3D cCWavesTiles3D = new CCWavesTiles3D();

            if (cCWavesTiles3D.initWithWaves(wav, amp, gridSize, duration))
            {
                return(cCWavesTiles3D);
            }
            return(null);
        }
示例#2
0
        /// <summary>
        /// creates the action with a number of waves, the waves amplitude, the grid size and the duration
        /// </summary>
        public static CCWavesTiles3D actionWithWaves(int wav, float amp, ccGridSize gridSize, float duration)
        {
            CCWavesTiles3D pAction = new CCWavesTiles3D();

            if (pAction.initWithWaves(wav, amp, gridSize, duration))
            {
                return pAction;
            }

            return null;
        }
示例#3
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCWavesTiles3D cCWavesTiles3D = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCWavesTiles3D = new CCWavesTiles3D();
                pZone          = new CCZone(cCWavesTiles3D);
            }
            else
            {
                cCWavesTiles3D = (CCWavesTiles3D)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCWavesTiles3D.initWithWaves(this.m_nWaves, this.m_fAmplitude, this.m_sGridSize, this.m_fDuration);
            return(cCWavesTiles3D);
        }
        /// <summary>
        /// creates the action with a number of waves, the waves amplitude, the grid size and the duration
        /// </summary>
        /// <param name="wav"></param>
        /// <param name="amp"></param>
        /// <param name="?"></param>
        /// <returns></returns>
        public static CCWavesTiles3D actionWithWaves(int wav, float amp, ccGridSize gridSize, float duration)
        {
            CCWavesTiles3D pAction = new CCWavesTiles3D();

            if (pAction != null)
            {
                if (pAction.initWithWaves(wav, amp, gridSize, duration))
                {
                    //pAction->autorelease();
                }
                else
                {
                    //CC_SAFE_RELEASE_NULL(pAction);
                }
            }

            return pAction;
        }
示例#5
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCWavesTiles3D pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                pCopy = (CCWavesTiles3D)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCWavesTiles3D();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithWaves(m_nWaves, m_fAmplitude, m_sGridSize, Duration);

            //CC_SAFE_DELETE(pNewZone);
            pNewZone = null;
            return pCopy;
        }
示例#6
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone         pNewZone = null;
            CCWavesTiles3D pCopy    = null;

            if (pZone != null && pZone.m_pCopyObject != null)
            {
                pCopy = (CCWavesTiles3D)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCWavesTiles3D();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithWaves(m_nWaves, m_fAmplitude, m_sGridSize, Duration);

            //CC_SAFE_DELETE(pNewZone);
            pNewZone = null;
            return(pCopy);
        }
示例#7
0
        public override object Copy(ICopyable pZone)
        {
            CCWavesTiles3D pCopy;
            if (pZone != null)
            {
                pCopy = (CCWavesTiles3D) (pZone);
            }
            else
            {
                pCopy = new CCWavesTiles3D();
                pZone =  (pCopy);
            }

            base.Copy(pZone);

            pCopy.InitWithWaves(m_nWaves, m_fAmplitude, m_sGridSize, m_fDuration);

            return pCopy;
        }
示例#8
0
 /// <summary>
 /// creates the action with a number of waves, the waves amplitude, the grid size and the duration
 /// </summary>
 public static CCWavesTiles3D Create(int wav, float amp, CCGridSize gridSize, float duration)
 {
     var pAction = new CCWavesTiles3D();
     pAction.InitWithWaves(wav, amp, gridSize, duration);
     return pAction;
 }