コード例 #1
0
        /** creates an action with a Cardinal Spline array of points and tension */
        public static CCCardinalSplineTo create(float duration, CCPointArray points, float tension)
        {
            CCCardinalSplineTo ret = new CCCardinalSplineTo();

            ret.initWithDuration(duration, points, tension);
            return(ret);
        }
コード例 #2
0
        public virtual new CCCardinalSplineTo copyWithZone(CCZone pZone)
        {
            CCCardinalSplineTo cCCardinalSplineTo;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCCardinalSplineTo = new CCCardinalSplineTo();
                pZone = new CCZone(cCCardinalSplineTo);
            }
            else
            {
                cCCardinalSplineTo = (CCCardinalSplineTo)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCCardinalSplineTo.initWithDuration(base.duration, this.m_pPoints, this.m_fTension);
            return(cCCardinalSplineTo);
        }
コード例 #3
0
        // super virtual functions
        public virtual CCCardinalSplineTo copyWithZone(CCZone pZone)
        {
            CCZone pNewZone;
            CCCardinalSplineTo pRet;
            if (pZone != null && pZone.m_pCopyObject != null) //in case of being called at sub class
            {
                pRet = (CCCardinalSplineTo)(pZone.m_pCopyObject);
            }
            else
            {
                pRet = new CCCardinalSplineTo();
                pZone = pNewZone = new CCZone(pRet);
            }

            base.copyWithZone(pZone);

            pRet.initWithDuration(Duration, m_pPoints, m_fTension);

            return pRet;
        }
コード例 #4
0
        // super virtual functions
        public virtual CCCardinalSplineTo copyWithZone(CCZone pZone)
        {
            CCZone             pNewZone;
            CCCardinalSplineTo pRet;

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

            base.copyWithZone(pZone);

            pRet.initWithDuration(duration, m_pPoints, m_fTension);

            return(pRet);
        }
コード例 #5
0
 /** creates an action with a Cardinal Spline array of points and tension */
 public static CCCardinalSplineTo create(float duration, CCPointArray points, float tension)
 {
     CCCardinalSplineTo ret = new CCCardinalSplineTo();
     ret.initWithDuration(duration, points, tension);
     return ret;
 }
コード例 #6
0
 /** creates an action with a Cardinal Spline array of points and tension
  * @deprecated: This interface will be deprecated sooner or later.
  */
 public static new CCCardinalSplineTo actionWithDuration(float duration, CCPointArray points, float tension)
 {
     return(CCCardinalSplineTo.create(duration, points, tension));
 }
コード例 #7
0
        public virtual CCActionInterval reverse()
        {
            CCPointArray pReverse = m_pPoints.reverse();

            return(CCCardinalSplineTo.create(m_fDuration, pReverse, m_fTension));
        }
コード例 #8
0
        public virtual new CCActionInterval reverse()
        {
            CCPointArray cCPointArray = this.m_pPoints.reverse();

            return(CCCardinalSplineTo.create(this.m_fDuration, cCPointArray, this.m_fTension));
        }
コード例 #9
0
 protected CCCardinalSplineTo(CCCardinalSplineTo cardinalSplineTo)
     : base(cardinalSplineTo)
 {
     InitWithDuration(cardinalSplineTo.m_fDuration, cardinalSplineTo.m_pPoints, cardinalSplineTo.m_fTension);
 }