Esempio n. 1
0
        /** initializes the action */
        public void initWithAction(CCActionInterval action)
        {
            NSUtils.Assert(action != null, "Ease: arguments must be non-nil");

            base.initWithDuration(action.duration);
            _inner = action;
        }
Esempio n. 2
0
 public void intWithAction(CCActionInterval action)
 {
     base.initWithAction(action);
     _polynomialOrder = kDefaultPolynomial;
     _hasInflection   = false;
     _intersetValue   = 1.78179743628068f;
 }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 /** initializes the action */
 public CCSpeed(CCActionInterval action, float speed)
 {
     initWithAction(action, speed);
 }
Esempio n. 5
0
 public CCEasePolynomialOut(CCActionInterval action) : base(action)
 {
 }
Esempio n. 6
0
 public CCEasePolynomial(CCActionInterval action)
 {
     initWithAction(action);
 }
Esempio n. 7
0
 public CCEaseExponentialIn(CCActionInterval action) : base(action)
 {
 }
Esempio n. 8
0
 public CCEaseInOut(CCActionInterval action, float rate) : base(action, rate)
 {
 }
Esempio n. 9
0
 /** Creates the action with the inner action and the rate parameter */
 public CCEaseRateAction(CCActionInterval action, float rate)
 {
     initWithAction(action, rate);
 }
Esempio n. 10
0
 public CCEaseElastic(CCActionInterval action, float period = 0.3f)
 {
     initWithAction(action, period);
 }
Esempio n. 11
0
 public CCEaseBackInOut(CCActionInterval action) : base(action)
 {
 }
Esempio n. 12
0
 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);
 }
Esempio n. 15
0
 public void initWithAction(CCActionInterval action, float speed)
 {
     base.init();
     this.innerAction = action;
     _speed           = speed;
 }
 public CCEaseBounce(CCActionInterval action) : base(action)
 {
 }
Esempio n. 17
0
 public void initWithAction(CCActionInterval action, float period = 0.3f)
 {
     base.initWithAction(action);
     _period = period;
 }
Esempio n. 18
0
 /** Initializes the action with the inner action and the rate parameter */
 public void initWithAction(CCActionInterval action, float rate)
 {
     base.initWithAction(action);
     this.rate = rate;
 }
Esempio n. 19
0
 public CCEaseElasticOut(CCActionInterval action) : base(action)
 {
 }
Esempio n. 20
0
 public CCEaseElasticOut(CCActionInterval action, float period) : base(action, period)
 {
 }
Esempio n. 21
0
 public CCEaseSineIn(CCActionInterval action) : base(action)
 {
 }