Ejemplo n.º 1
0
        public static CCSplitRows actionWithRows(int nRows, float duration)
        {
            CCSplitRows cCSplitRow = new CCSplitRows();

            if (cCSplitRow.initWithRows(nRows, duration))
            {
                return(cCSplitRow);
            }
            return(null);
        }
        /// <summary>
        ///  creates the action with the number of rows to split and the duration 
        /// </summary>
        public static CCSplitRows actionWithRows(int nRows, float duration)
        {
            CCSplitRows pAction = new CCSplitRows();
            if (pAction.initWithRows(nRows, duration))
            {
                return pAction;
            }

            return null;
        }
Ejemplo n.º 3
0
        /// <summary>
        ///  creates the action with the number of rows to split and the duration
        /// </summary>
        public static CCSplitRows actionWithRows(int nRows, float duration)
        {
            CCSplitRows pAction = new CCSplitRows();

            if (pAction.initWithRows(nRows, duration))
            {
                return(pAction);
            }

            return(null);
        }
Ejemplo n.º 4
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCSplitRows cCSplitRow = null;

            if (pZone == null || pZone.m_pCopyObject == null)
            {
                cCSplitRow = new CCSplitRows();
                pZone      = new CCZone(cCSplitRow);
            }
            else
            {
                cCSplitRow = (CCSplitRows)pZone.m_pCopyObject;
            }
            base.copyWithZone(pZone);
            cCSplitRow.initWithRows(this.m_nRows, this.m_fDuration);
            return(cCSplitRow);
        }
Ejemplo n.º 5
0
        /// <summary>
        ///  creates the action with the number of rows to split and the duration 
        /// </summary>
        /// <param name="nRows"></param>
        /// <param name="duration"></param>
        /// <returns></returns>
        public static CCSplitRows actionWithRows(int nRows, float duration)
        {
            CCSplitRows pAction = new CCSplitRows();

            if (pAction != null)
            {
                if (pAction.initWithRows(nRows, duration))
                {
                    //pAction->autorelease();
                }
                else
                {
                    //CC_SAFE_RELEASE_NULL(pAction);
                }
            }

            return pAction;
        }
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone pNewZone = null;
            CCSplitRows pCopy = null;
            if (pZone != null && pZone.m_pCopyObject != null)
            {
                pCopy = (CCSplitRows)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCSplitRows();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithRows(m_nRows, m_fDuration);

            //CC_SAFE_DELETE(pNewZone);
            pNewZone = null;
            return pCopy;
        }
Ejemplo n.º 7
0
        public override CCObject copyWithZone(CCZone pZone)
        {
            CCZone      pNewZone = null;
            CCSplitRows pCopy    = null;

            if (pZone != null && pZone.m_pCopyObject != null)
            {
                pCopy = (CCSplitRows)(pZone.m_pCopyObject);
            }
            else
            {
                pCopy = new CCSplitRows();
                pZone = pNewZone = new CCZone(pCopy);
            }

            base.copyWithZone(pZone);

            pCopy.initWithRows(m_nRows, m_fDuration);

            //CC_SAFE_DELETE(pNewZone);
            pNewZone = null;
            return(pCopy);
        }
Ejemplo n.º 8
0
 public override CCActionInterval action()
 {
     return(CCSplitRows.actionWithRows(3, this.m_fDuration / 2f));
 }