예제 #1
0
        public static CCRipple3D actionWithPosition(CCPoint pos, float r, int wav, float amp, ccGridSize gridSize, float duration)
        {
            CCRipple3D cCRipple3D = new CCRipple3D();

            if (cCRipple3D.initWithPosition(pos, r, wav, amp, gridSize, duration))
            {
                return(cCRipple3D);
            }
            return(null);
        }
예제 #2
0
        /// <summary>
        /// creates the action with radius, number of waves, amplitude, a grid size and duration
        /// </summary>
        public static CCRipple3D actionWithPosition(CCPoint pos, float r, int wav, float amp,
            ccGridSize gridSize, float duration)
        {
            CCRipple3D pAction = new CCRipple3D();

            if (pAction.initWithPosition(pos, r, wav, amp, gridSize, duration))
            {
                return pAction;
            }

            return null;
        }
예제 #3
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCRipple3D cCRipple3D = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCRipple3D = new CCRipple3D();
                pZone      = new CCZone(cCRipple3D);
            }
            else
            {
                cCRipple3D = (CCRipple3D)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCRipple3D.initWithPosition(this.m_position, this.m_fRadius, this.m_nWaves, this.m_fAmplitude, this.m_sGridSize, this.m_fDuration);
            return(cCRipple3D);
        }
예제 #4
0
        /** creates the action with radius, number of waves, amplitude, a grid size and duration */
        public static CCRipple3D actionWithPosition(CCPoint pos, float r, int wav, float amp,
            ccGridSize gridSize, float duration)
        {
            CCRipple3D pAction = new CCRipple3D();

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

            return pAction;
        }
예제 #5
0
        public override object Copy(ICopyable pZone)
        {
            CCRipple3D pCopy;
            if (pZone != null)
            {
                //in case of being called at sub class
                pCopy = (CCRipple3D) (pZone);
            }
            else
            {
                pCopy = new CCRipple3D();
                pZone =  (pCopy);
            }

            base.Copy(pZone);
            pCopy.InitWithPosition(m_position, m_fRadius, m_nWaves, m_fAmplitude, m_sGridSize, m_fDuration);

            return pCopy;
        }
예제 #6
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCRipple3D pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pCopy = (CCRipple3D)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCRipple3D();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);
            pCopy.initWithPosition(m_position, m_fRadius, m_nWaves, m_fAmplitude, m_sGridSize, Duration);

            return pCopy;
        }
예제 #7
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone     pNewZone = null;
            CCRipple3D pCopy    = null;

            if (pZone != null && pZone.m_pCopyObject != null)
            {
                //in case of being called at sub class
                pCopy = (CCRipple3D)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCRipple3D();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);
            pCopy.initWithPosition(m_position, m_fRadius, m_nWaves, m_fAmplitude, m_sGridSize, m_fDuration);

            return(pCopy);
        }
예제 #8
0
 public static CCRipple3D Create(CCPoint pos, float r, int wav, float amp, CCGridSize gridSize, float duration)
 {
     var pAction = new CCRipple3D();
     pAction.InitWithPosition(pos, r, wav, amp, gridSize, duration);
     return pAction;
 }