public static CCSplitCols actionWithCols(int nCols, float duration) { CCSplitCols cCSplitCol = new CCSplitCols(); if (cCSplitCol.initWithCols(nCols, duration)) { return(cCSplitCol); } return(null); }
/// <summary> /// creates the action with the number of columns to split and the duration /// </summary> public static CCSplitCols actionWithCols(int nCols, float duration) { CCSplitCols pAction = new CCSplitCols(); if (pAction.initWithCols(nCols, duration)) { return pAction; } return null; }
/// <summary> /// creates the action with the number of columns to split and the duration /// </summary> public static CCSplitCols actionWithCols(int nCols, float duration) { CCSplitCols pAction = new CCSplitCols(); if (pAction.initWithCols(nCols, duration)) { return(pAction); } return(null); }
public override CCObject copyWithZone(CCZone pZone) { CCSplitCols cCSplitCol = null; if (pZone == null || pZone.m_pCopyObject == null) { cCSplitCol = new CCSplitCols(); pZone = new CCZone(cCSplitCol); } else { cCSplitCol = (CCSplitCols)pZone.m_pCopyObject; } base.copyWithZone(pZone); cCSplitCol.initWithCols(this.m_nCols, this.m_fDuration); return(cCSplitCol); }
/// <summary> /// creates the action with the number of columns to split and the duration /// </summary> /// <param name="nCols"></param> /// <param name="duration"></param> /// <returns></returns> public static CCSplitCols actionWithCols(int nCols, float duration) { CCSplitCols pAction = new CCSplitCols(); if (pAction != null) { if (pAction.initWithCols(nCols, duration)) { //pAction->autorelease(); } else { //CC_SAFE_RELEASE_NULL(pAction); } } return pAction; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCSplitCols pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { pCopy = (CCSplitCols)(pZone.m_pCopyObject); } else { pCopy = new CCSplitCols(); pZone = pNewZone = new CCZone(pCopy); } base.copyWithZone(pZone); pCopy.initWithCols(m_nCols, m_fDuration); //CC_SAFE_DELETE(pNewZone); pNewZone = null; return pCopy; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCSplitCols pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { pCopy = (CCSplitCols)(pZone.m_pCopyObject); } else { pCopy = new CCSplitCols(); pZone = pNewZone = new CCZone(pCopy); } base.copyWithZone(pZone); pCopy.initWithCols(m_nCols, Duration); //CC_SAFE_DELETE(pNewZone); pNewZone = null; return(pCopy); }
public virtual CCActionInterval action() { return(CCSplitCols.actionWithCols(3, this.m_fDuration / 2f)); }