コード例 #1
0
        public static CCSplitRows actionWithRows(int nRows, float duration)
        {
            CCSplitRows cCSplitRow = new CCSplitRows();

            if (cCSplitRow.initWithRows(nRows, duration))
            {
                return(cCSplitRow);
            }
            return(null);
        }
コード例 #2
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;
        }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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;
        }
コード例 #6
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;
        }
コード例 #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);
        }
コード例 #8
0
 public override CCActionInterval action()
 {
     return(CCSplitRows.actionWithRows(3, this.m_fDuration / 2f));
 }