Ejemplo n.º 1
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone tmpZone = zone;
            CCReverseTime ret = null;

            if (tmpZone != null && tmpZone.m_pCopyObject != null)
            {
                ret = tmpZone.m_pCopyObject as CCReverseTime;
                if (ret == null)
                {
                    return null;
                }
            }
            else
            {
                ret = new CCReverseTime();
                tmpZone = new CCZone(ret);
            }

            base.copyWithZone(tmpZone);

            ret.initWithAction(m_pOther.copy() as CCFiniteTimeAction);

            return ret;
        }
Ejemplo n.º 2
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone        tmpZone = zone;
            CCReverseTime ret     = null;

            if (tmpZone != null && tmpZone.m_pCopyObject != null)
            {
                ret = tmpZone.m_pCopyObject as CCReverseTime;
                if (ret == null)
                {
                    return(null);
                }
            }
            else
            {
                ret     = new CCReverseTime();
                tmpZone = new CCZone(ret);
            }

            base.copyWithZone(tmpZone);

            ret.initWithAction(m_pOther.copy() as CCFiniteTimeAction);

            return(ret);
        }
        public static CCReverseTime actionWithAction(CCFiniteTimeAction action)
        {
            CCReverseTime ret = new CCReverseTime();
            ret.initWithAction(action);

            return ret;
        }
Ejemplo n.º 4
0
        public static CCReverseTime actionWithAction(CCFiniteTimeAction action)
        {
            CCReverseTime cCReverseTime = new CCReverseTime();

            cCReverseTime.initWithAction(action);
            return(cCReverseTime);
        }
Ejemplo n.º 5
0
 public CCActionInterval actionWithSize(ccGridSize vector)
 {
     if (!this.m_bBack)
     {
         return(CCPageTurn3D.actionWithSize(vector, this.m_fDuration));
     }
     return(CCReverseTime.actionWithAction(CCPageTurn3D.actionWithSize(vector, this.m_fDuration)));
 }
Ejemplo n.º 6
0
        public static CCReverseTime actionWithAction(CCFiniteTimeAction action)
        {
            CCReverseTime ret = new CCReverseTime();

            ret.initWithAction(action);

            return(ret);
        }
 public CCActionInterval actionWithSize(ccGridSize vector)
 {
     if (m_bBack)
     {
         // Get hold of the PageTurn3DAction
         return CCReverseTime.actionWithAction
         (
             CCPageTurn3D.actionWithSize(vector, m_fDuration)
         );
     }
     else
     {
         // Get hold of the PageTurn3DAction
         return CCPageTurn3D.actionWithSize(vector, m_fDuration);
     }
 }
Ejemplo n.º 8
0
        public override CCObject copyWithZone(CCZone zone)
        {
            CCZone        cCZone        = zone;
            CCReverseTime cCReverseTime = null;

            if (cCZone == null || cCZone.m_pCopyObject == null)
            {
                cCReverseTime = new CCReverseTime();
                cCZone        = new CCZone(cCReverseTime);
            }
            else
            {
                cCReverseTime = cCZone.m_pCopyObject as CCReverseTime;
                if (cCReverseTime == null)
                {
                    return(null);
                }
            }
            base.copyWithZone(cCZone);
            cCReverseTime.initWithAction(this.m_pOther.copy() as CCFiniteTimeAction);
            return(cCReverseTime);
        }
Ejemplo n.º 9
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCReverseTime.actionWithAction(this));
 }
Ejemplo n.º 10
0
 protected CCReverseTime(CCReverseTime copy)
     : base(copy)
 {
     m_pOther = copy.m_pOther;
 }