public static CCEaseRateAction actionWithAction(CCActionInterval pAction, float fRate) { CCEaseRateAction cCEaseRateAction = new CCEaseRateAction(); if (cCEaseRateAction != null) { cCEaseRateAction.initWithAction(pAction, fRate); } return(cCEaseRateAction); }
public override CCObject copyWithZone(CCZone pZone) { CCEaseRateAction cCEaseRateAction = null; if (pZone == null || pZone.m_pCopyObject == null) { cCEaseRateAction = new CCEaseRateAction(); pZone = new CCZone(cCEaseRateAction); } else { cCEaseRateAction = (CCEaseRateAction)pZone.m_pCopyObject; } cCEaseRateAction.initWithAction((CCActionInterval)this.m_pOther.copy(), this.m_fRate); return(cCEaseRateAction); }
/// <summary> /// Creates the action with the inner action and the rate parameter /// </summary> /// <param name="pAction"></param> /// <param name="fRate"></param> /// <returns></returns> public static CCEaseRateAction actionWithAction(CCActionInterval pAction, float fRate) { CCEaseRateAction pRet = new CCEaseRateAction(); if (pRet != null) { if (pRet.initWithAction(pAction, fRate)) { //pRet.autorelease(); } else { //CC_SAFE_RELEASE_NULL(pRet); } } return(pRet); }
/// <summary> /// Creates the action with the inner action and the rate parameter /// </summary> /// <param name="pAction"></param> /// <param name="fRate"></param> /// <returns></returns> public static CCEaseRateAction actionWithAction(CCActionInterval pAction, float fRate) { CCEaseRateAction pRet = new CCEaseRateAction(); if (pRet != null) { if (pRet.initWithAction(pAction, fRate)) { //pRet.autorelease(); } else { //CC_SAFE_RELEASE_NULL(pRet); } } return pRet; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCEaseRateAction pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCEaseRateAction)(pZone.m_pCopyObject); } else { pCopy = new CCEaseRateAction(); pZone = pNewZone = new CCZone(pCopy); } pCopy.initWithAction((CCActionInterval)(m_pOther.copy()), m_fRate); return(pCopy); }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCEaseRateAction pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCEaseRateAction)(pZone.m_pCopyObject); } else { pCopy = new CCEaseRateAction(); pZone = pNewZone = new CCZone(pCopy); } pCopy.initWithAction((CCActionInterval)(m_pOther.copy()), m_fRate); return pCopy; }
public override CCFiniteTimeAction reverse() { return(CCEaseRateAction.actionWithAction((CCActionInterval)this.m_pOther.reverse(), 1f / this.m_fRate)); }