public static CCSpeed actionWithAction(CCActionInterval action, float fRate) { CCSpeed speed = new CCSpeed(); if ((speed != null) && speed.initWithAction(action, fRate)) { return(speed); } return(null); }
public static CCSpeed actionWithAction(CCActionInterval action, float fRate) { CCSpeed ret = new CCSpeed(); if (ret != null && ret.initWithAction(action, fRate)) { return(ret); } return(null); }
public static CCSpeed actionWithAction(CCActionInterval action, float fRate) { CCSpeed ret = new CCSpeed(); if (ret != null && ret.initWithAction(action, fRate)) { return ret; } return null; }
public override CCObject copyWithZone(CCZone zone) { CCZone zone2 = null; CCSpeed pCopyObject = null; if ((zone2 != null) && (zone2.m_pCopyObject != null)) { pCopyObject = (CCSpeed)zone2.m_pCopyObject; } else { pCopyObject = new CCSpeed(); zone2 = new CCZone(pCopyObject); } base.copyWithZone(zone); pCopyObject.initWithAction((CCActionInterval)this.m_pInnerAction.copy(), this.m_fSpeed); return(pCopyObject); }
public override CCObject copyWithZone(CCZone zone) { CCZone tmpZone = null; CCSpeed ret = null; if (tmpZone != null && tmpZone.m_pCopyObject != null) { ret = (CCSpeed)tmpZone.m_pCopyObject; } else { ret = new CCSpeed(); tmpZone = new CCZone(ret); } base.copyWithZone(zone); ret.initWithAction((CCActionInterval)m_pInnerAction.copy(), m_fSpeed); return ret; }
public override CCObject copyWithZone(CCZone zone) { CCZone tmpZone = null; CCSpeed ret = null; if (tmpZone != null && tmpZone.m_pCopyObject != null) { ret = (CCSpeed)tmpZone.m_pCopyObject; } else { ret = new CCSpeed(); tmpZone = new CCZone(ret); } base.copyWithZone(zone); ret.initWithAction((CCActionInterval)m_pInnerAction.copy(), m_fSpeed); return(ret); }
public override void OnEnter() { base.OnEnter(); var s = CCDirector.SharedDirector.WinSize; // rotate and jump var jump1 = new CCJumpBy (4, new CCPoint(-s.Width + 80, 0), 100, 4); var jump2 = jump1.Reverse(); var rot1 = new CCRotateBy (4, 360 * 2); var rot2 = rot1.Reverse(); var seq3_1 = CCSequence.FromActions(jump2, jump1); var seq3_2 = CCSequence.FromActions(rot1, rot2); var spawn = CCSpawn.FromActions(seq3_1, seq3_2); var action = new CCSpeed (new CCRepeatForever (spawn), 1.0f); action.Tag = EaseTest.kTagAction1; var action2 = (CCAction) (action.Copy()); var action3 = (CCAction) (action.Copy()); action2.Tag = EaseTest.kTagAction1; action3.Tag = EaseTest.kTagAction1; m_grossini.RunAction(action2); m_tamara.RunAction(action3); m_kathia.RunAction(action); Schedule(altertime, 1.0f); }
protected CCSpeed(CCSpeed speed) : base(speed) { InitWithAction((CCActionInterval) speed.m_pInnerAction.Copy(), speed.m_fSpeed); }
public virtual CCActionInterval reverse() { return((CCActionInterval)(CCAction)CCSpeed.actionWithAction((CCActionInterval)m_pInnerAction.reverse(), m_fSpeed)); }