Esempio n. 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);
        }
        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);
        }
Esempio n. 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;
        }
Esempio n. 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);
        }
Esempio n. 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;
 }
Esempio n. 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));
 }
Esempio n. 7
0
        public virtual CCActionInterval reverse()
        {
            CCPointArray pReverse = m_pPoints.reverse();

            return(CCCardinalSplineTo.create(m_fDuration, pReverse, m_fTension));
        }
        public virtual new CCActionInterval reverse()
        {
            CCPointArray cCPointArray = this.m_pPoints.reverse();

            return(CCCardinalSplineTo.create(this.m_fDuration, cCPointArray, this.m_fTension));
        }
Esempio n. 9
0
 protected CCCardinalSplineTo(CCCardinalSplineTo cardinalSplineTo)
     : base(cardinalSplineTo)
 {
     InitWithDuration(cardinalSplineTo.m_fDuration, cardinalSplineTo.m_pPoints, cardinalSplineTo.m_fTension);
 }