public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCGridAction pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCGridAction)(pZone.m_pCopyObject); } else { pCopy = new CCGridAction(); pZone = pNewZone = new CCZone(pCopy); } base.copyWithZone(pZone); pCopy.initWithSize(m_sGridSize, m_fDuration); if (pNewZone != null) { pNewZone = null; } return(pCopy); }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCGridAction pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCGridAction)(pZone.m_pCopyObject); } else { pCopy = new CCGridAction(); pZone = pNewZone = new CCZone(pCopy); } base.copyWithZone(pZone); pCopy.initWithSize(m_sGridSize, m_fDuration); if (pNewZone != null) { pNewZone = null; } return pCopy; }
/// <summary> /// creates the action with size and duration /// </summary> public static CCGridAction actionWithSize(ccGridSize gridSize, float duration) { CCGridAction pAction = new CCGridAction(); if (pAction.initWithSize(gridSize, duration)) { return pAction; } return null; }
public static CCGridAction actionWithSize(ccGridSize gridSize, float duration) { CCGridAction cCGridAction = new CCGridAction(); if (cCGridAction.initWithSize(gridSize, duration)) { return(cCGridAction); } return(null); }
/** creates the action with size and duration */ public static CCGridAction actionWithSize(ccGridSize gridSize, float duration) { CCGridAction pAction = new CCGridAction(); if (pAction != null) { if (pAction.initWithSize(gridSize, duration)) { //pAction->autorelease(); } else { //CC_SAFE_DELETE(pAction); } } return pAction; }
public override object Copy(ICopyable pZone) { CCGridAction pCopy = null; if (pZone != null) { //in case of being called at sub class pCopy = (CCGridAction) (pZone); } else { pCopy = new CCGridAction(); pZone = (pCopy); } base.Copy(pZone); pCopy.InitWithSize(m_sGridSize, m_fDuration); return pCopy; }
public override CCObject copyWithZone(CCZone pZone) { CCZone cCZone = null; CCGridAction cCGridAction = null; if (pZone == null || pZone.m_pCopyObject == null) { cCGridAction = new CCGridAction(); CCZone cCZone1 = new CCZone(cCGridAction); cCZone = cCZone1; pZone = cCZone1; } else { cCGridAction = (CCGridAction)pZone.m_pCopyObject; } base.copyWithZone(pZone); cCGridAction.initWithSize(this.m_sGridSize, this.m_fDuration); if (cCZone != null) { cCZone = null; } return(cCGridAction); }
public static CCGridAction Create(CCGridSize gridSize, float duration) { var pAction = new CCGridAction(); pAction.InitWithSize(gridSize, duration); return pAction; }
public CCGridAction(CCGridAction gridAction) : this(gridAction.m_sGridSize, gridAction.m_fDuration) { }