12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef Paddle_h
- #define Paddle_h
- #include "cocos2d.h"
- #define HALF 1
- #define NORMAL 2
- #define DOUBLE 3
- class Paddle : public cocos2d::Node {
- public:
-
- virtual bool init();
-
- void doubleSize();
-
- void halfSize();
-
- void listen(double width);
-
- CREATE_FUNC(Paddle);
- private:
-
- cocos2d::DrawNode* double_paddle;
-
- cocos2d::DrawNode* normal_paddle;
-
- cocos2d::DrawNode* half_paddle;
-
- int stade;
-
- void setPX (double px, double width);
-
- void normalSize();
-
- void startNormalTimer();
- };
- #endif
|