/** initializes the action */ public void initWithAction(CCActionInterval action) { NSUtils.Assert(action != null, "Ease: arguments must be non-nil"); base.initWithDuration(action.duration); _inner = action; }
public void intWithAction(CCActionInterval action) { base.initWithAction(action); _polynomialOrder = kDefaultPolynomial; _hasInflection = false; _intersetValue = 1.78179743628068f; }
public override void Play(MovieCallback callback) { if (callback == null) { Play(); return; } if (_startFrame == _endFrame) { GotoFrame(_startFrame); callback(this); return; } Stop(); GotoFrame(_startFrame); MovieImpAction action = new MovieImpAction(this, _startFrame, _endFrame); CCActionFiniteTime callbackAction = new CCCallBlock(delegate { callback(this); }); CCActionInterval seq = CCSequence.Actions(action, callbackAction) as CCActionInterval; if (_loop) { _action = new CCRepeatForever(seq); } else { _action = seq; } _view.runAction(_action); }
/** initializes the action */ public CCSpeed(CCActionInterval action, float speed) { initWithAction(action, speed); }
public CCEasePolynomialOut(CCActionInterval action) : base(action) { }
public CCEasePolynomial(CCActionInterval action) { initWithAction(action); }
public CCEaseExponentialIn(CCActionInterval action) : base(action) { }
public CCEaseInOut(CCActionInterval action, float rate) : base(action, rate) { }
/** Creates the action with the inner action and the rate parameter */ public CCEaseRateAction(CCActionInterval action, float rate) { initWithAction(action, rate); }
public CCEaseElastic(CCActionInterval action, float period = 0.3f) { initWithAction(action, period); }
public CCEaseBackInOut(CCActionInterval action) : base(action) { }
public CCActionEase(CCActionInterval action) { initWithAction(action); }
public void initWithAction(CCActionInterval action) { base.init(); this.innerAction = action; }
/** initializes the action */ public CCRepeatForever(CCActionInterval action) { initWithAction(action); }
public void initWithAction(CCActionInterval action, float speed) { base.init(); this.innerAction = action; _speed = speed; }
public CCEaseBounce(CCActionInterval action) : base(action) { }
public void initWithAction(CCActionInterval action, float period = 0.3f) { base.initWithAction(action); _period = period; }
/** Initializes the action with the inner action and the rate parameter */ public void initWithAction(CCActionInterval action, float rate) { base.initWithAction(action); this.rate = rate; }
public CCEaseElasticOut(CCActionInterval action) : base(action) { }
public CCEaseElasticOut(CCActionInterval action, float period) : base(action, period) { }
public CCEaseSineIn(CCActionInterval action) : base(action) { }