public static new CCEaseSineInOut actionWithAction(CCActionInterval pAction) { CCEaseSineInOut cCEaseSineInOut = new CCEaseSineInOut(); if (cCEaseSineInOut != null) { cCEaseSineInOut.initWithAction(pAction); } return(cCEaseSineInOut); }
public override CCObject copyWithZone(CCZone pZone) { CCEaseSineInOut cCEaseSineInOut = null; if (pZone == null || pZone.m_pCopyObject == null) { cCEaseSineInOut = new CCEaseSineInOut(); pZone = new CCZone(cCEaseSineInOut); } else { cCEaseSineInOut = (CCEaseSineInOut)pZone.m_pCopyObject; } cCEaseSineInOut.initWithAction((CCActionInterval)this.m_pOther.copy()); return(cCEaseSineInOut); }
/// <summary> /// creates the action /// </summary> /// <param name="pAction"></param> /// <returns></returns> public new static CCEaseSineInOut actionWithAction(CCActionInterval pAction) { CCEaseSineInOut pRet = new CCEaseSineInOut(); if (pRet != null) { if (pRet.initWithAction(pAction)) { //pRet.autorelease(); } else { //CC_SAFE_RELEASE_NULL(pRet); } } return pRet; }
/// <summary> /// creates the action /// </summary> /// <param name="pAction"></param> /// <returns></returns> public new static CCEaseSineInOut actionWithAction(CCActionInterval pAction) { CCEaseSineInOut pRet = new CCEaseSineInOut(); if (pRet != null) { if (pRet.initWithAction(pAction)) { //pRet.autorelease(); } else { //CC_SAFE_RELEASE_NULL(pRet); } } return(pRet); }
public override object Copy(ICopyable pZone) { CCEaseSineInOut pCopy; if (pZone != null) { //in case of being called at sub class pCopy = (CCEaseSineInOut) (pZone); } else { pCopy = new CCEaseSineInOut(); } pCopy.InitWithAction((CCActionInterval) (m_pOther.Copy())); return pCopy; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCEaseSineInOut pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCEaseSineInOut)(pZone.m_pCopyObject); } else { pCopy = new CCEaseSineInOut(); pZone = pNewZone = new CCZone(pCopy); } pCopy.initWithAction((CCActionInterval)(m_pOther.copy())); return pCopy; }
public override CCObject copyWithZone(CCZone pZone) { CCZone pNewZone = null; CCEaseSineInOut pCopy = null; if (pZone != null && pZone.m_pCopyObject != null) { //in case of being called at sub class pCopy = (CCEaseSineInOut)(pZone.m_pCopyObject); } else { pCopy = new CCEaseSineInOut(); pZone = pNewZone = new CCZone(pCopy); } pCopy.initWithAction((CCActionInterval)(m_pOther.copy())); return(pCopy); }
public override void OnEnter() { base.OnEnter(); var s = CCDirector.SharedDirector.WinSize; var move = new CCMoveBy (3, new CCPoint(s.Width - 130, 0)); var move_back = move.Reverse(); var move_ease = new CCEaseSineInOut((CCActionInterval) (move.Copy())); var move_ease_back = move_ease.Reverse(); var delay = new CCDelayTime (0.25f); var seq1 = CCSequence.FromActions(move, delay, move_back, (CCFiniteTimeAction) delay.Copy()); var seq2 = CCSequence.FromActions(move_ease, (CCFiniteTimeAction) delay.Copy(), move_ease_back, (CCFiniteTimeAction) delay.Copy()); positionForTwo(); m_grossini.RunAction(new CCRepeatForever (seq1)); m_tamara.RunAction(new CCRepeatForever (seq2)); }
public static new CCEaseSineInOut Create(CCActionInterval pAction) { var pRet = new CCEaseSineInOut(); pRet.InitWithAction(pAction); return pRet; }
public CCEaseSineInOut(CCEaseSineInOut easeSineInOut) : base(easeSineInOut) { }