/// <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 object Copy(ICopyable pZone) { CCEaseRateAction pCopy; if (pZone != null) { //in case of being called at sub class pCopy = (CCEaseRateAction) (pZone); } else { pCopy = new CCEaseRateAction(); } pCopy.InitWithAction((CCActionInterval) (m_pOther.Copy()), m_fRate); return pCopy; }
/// <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 CCEaseRateAction (CCEaseRateAction easeRateAction) : base (easeRateAction) { InitWithAction((CCActionInterval) (easeRateAction.m_pOther.Copy()), easeRateAction.m_fRate); }
public CCEaseRateActionState(CCEaseRateAction action, CCNode target) : base(action, target) { Rate = action.Rate; }
public CCEaseRateAction(CCEaseRateAction easeRateAction) : base(easeRateAction) { InitWithAction((CCActionInterval)(easeRateAction.m_pOther.Copy()), easeRateAction.m_fRate); }
public CCEaseRateActionState (CCEaseRateAction action, CCNode target) : base (action, target) { Rate = action.Rate; }
public static CCEaseRateAction Create(CCActionInterval pAction, float fRate) { var pRet = new CCEaseRateAction(); pRet.InitWithAction(pAction, fRate); return pRet; }
public override CCFiniteTimeAction Reverse() { return(CCEaseRateAction.actionWithAction((CCActionInterval)m_pOther.Reverse(), 1 / m_fRate)); }