Example #1
0
 public Ease(ActionInterval action, EaseFunction func)
     : base(action)
 {
     _function = func;
 }
Example #2
0
 /**
  * @brief Creates the action with the inner action and the param parameter.
  * @param action A given ActionInterval
  * @param param A given param
  * @return An autoreleased EaseParam object.
  **/
 public EaseParam(ActionInterval action, EaseParamFunction func, float param)
     : base(action)
 {
     _function = func;
     _param    = param;
 }
Example #3
0
 /** Creates the action.
  *
  * @param action The action need to repeat forever.
  * @return An autoreleased RepeatForever object.
  */
 public RepeatForever(ActionInterval action)
     : base(0)
 {
     Debug.Assert(action != null, "action can't be null!");
     _innerAction = action;
 }
Example #4
0
 public ActionEase(ActionInterval action)
     : base(action.duration)
 {
     _inner = action;
 }
Example #5
0
 /** Create the action and set the speed.
  *
  * @param action An action.
  * @param speed The action speed.
  */
 public Speed(ActionInterval action, float speed)
 {
     Debug.Assert(action != null, "action must not be null");
     _innerAction = action;
     _speed       = speed;
 }