コード例 #1
0
 public Ease(ActionInterval action, EaseFunction func)
     : base(action)
 {
     _function = func;
 }
コード例 #2
0
ファイル: EaseParam.cs プロジェクト: t5w0rd/uHeroes
 /**
  * @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;
 }
コード例 #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;
 }
コード例 #4
0
ファイル: ActionEase.cs プロジェクト: t5w0rd/uHeroes
 public ActionEase(ActionInterval action)
     : base(action.duration)
 {
     _inner = action;
 }
コード例 #5
0
ファイル: Speed.cs プロジェクト: t5w0rd/uHeroes
 /** 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;
 }