Ejemplo n.º 1
0
        /** creates an action with a Cardinal Spline array of points and tension */
        public static CCCatmullRomTo create(float dt, CCPointArray points)
        {
            CCCatmullRomTo ret = new CCCatmullRomTo();

            ret.initWithDuration(dt, points);
            return(ret);
        }
Ejemplo n.º 2
0
        /** creates an action with a Cardinal Spline array of points and tension */
        public static CCCatmullRomBy create(float dt, CCPointArray points)
        {
            CCCatmullRomBy by = new CCCatmullRomBy();

            by.initWithDuration(dt, points);
            return(by);
        }
Ejemplo n.º 3
0
 public virtual bool initWithDuration(float dt, CCPointArray points)
 {
     if (base.initWithDuration(dt, points, 0.5f))
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 4
0
     /** initializes the action with a duration and an array of points */
     public virtual bool initWithDuration(float dt, CCPointArray points)
     {
         if (base.initWithDuration(dt, points, 0.5f))
         {
             return true;
         }
 
         return false;
     }
Ejemplo n.º 5
0
 /** creates an action with a Cardinal Spline array of points and tension */
 public static CCCatmullRomTo create(float dt, CCPointArray points)
 {
     CCCatmullRomTo ret = new CCCatmullRomTo();
     ret.initWithDuration(dt, points);
     return ret;
 }
Ejemplo n.º 6
0
 /** creates an action with a Cardinal Spline array of points and tension 
 @deprecated: This interface will be deprecated sooner or later.
 */
 public static CCCatmullRomTo actionWithDuration(float dt, CCPointArray points)
 {
     return CCCatmullRomTo.create(dt, points);
 }
Ejemplo n.º 7
0
 /** creates an action with a Cardinal Spline array of points and tension
  * @deprecated: This interface will be deprecated sooner or later.
  */
 public static CCCatmullRomTo actionWithDuration(float dt, CCPointArray points)
 {
     return(CCCatmullRomTo.create(dt, points));
 }
Ejemplo n.º 8
0
 /** creates an action with a Cardinal Spline array of points and tension */
 public static CCCatmullRomBy create(float dt, CCPointArray points)
 {
     CCCatmullRomBy by = new CCCatmullRomBy();
     by.initWithDuration(dt, points);
     return (by);
 }