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; }
/// <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); }
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); }
/// <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; }
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); }
public override CCActionInterval action() { return(CCSplitRows.actionWithRows(3, this.m_fDuration / 2f)); }