コード例 #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
ファイル: CCWavesTiles3D.cs プロジェクト: liwq-net/liwq718
        /// <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);
        }
コード例 #4
0
        /// <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
ファイル: CCWavesTiles3D.cs プロジェクト: liwq-net/liwq718
        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
ファイル: CCWavesTiles3D.cs プロジェクト: liwq-net/liwq718
        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;
 }