Source

cocos2d-qt / Srcs / action.h

Diff from to

Srcs/action.h

 
 class Node;
 
-class action : public QObject
+class Action : public QObject
 {
     Q_OBJECT
 
 public:
 
-    static action* FuncCall(QObject* targeted,const char* slot);
-    static action* moveTo(float duration,qreal x,qreal y);
-    static action* moveBy(float duration,qreal x,qreal y);
-    static action* scaleTo(float duration,qreal scale);
-    static action* scaleBy(float duration,qreal scale);
-    static action* fadeTo(float duration,qreal value);
-    static action* fadeBy(float duration,qreal value);
-    static action* rotateTo(float duration,qreal angle);
-    static action* rotateBy(float duration,qreal angle);
-    static action* easein(action* withAction,int rate = 4);
-    static action* easeout(action* withAction,int rate = 4);
-    static action* easeinout(action* withAction,int rate = 4);
+    static Action* FuncCall(QObject* targeted,const char* slot);
+    static Action* moveTo(float duration,qreal x,qreal y);
+    static Action* moveBy(float duration,qreal x,qreal y);
+    static Action* scaleTo(float duration,qreal scale);
+    static Action* scaleBy(float duration,qreal scale);
+    static Action* fadeTo(float duration,qreal value);
+    static Action* fadeBy(float duration,qreal value);
+    static Action* rotateTo(float duration,qreal angle);
+    static Action* rotateBy(float duration,qreal angle);
+    static Action* easein(Action* withAction,int rate = 4);
+    static Action* easeout(Action* withAction,int rate = 4);
+    static Action* easeinout(Action* withAction,int rate = 4);
     void setTarget(Node *targeteted);
     void stopAnimation();
 
         actionTypeFuncCall
     };
     QObject *target;
-    action();
+    Action();
     //this is the animation variable
     QPropertyAnimation animation;
     actionType actionTypeV;
 public slots:
     void delete_self();
 signals:
-    void animationFinished(action *finishedAction);
+    void animationFinished(Action *finishedAction);
 };
 
 #endif // ACTION_H