1
0

Ball.h 468 B

12345678910111213141516171819202122232425
  1. //
  2. // Ball.h
  3. // RedCore
  4. //
  5. #ifndef Ball_h
  6. #define Ball_h
  7. #include "cocos2d.h"
  8. class Ball : public cocos2d::Node {
  9. public:
  10. virtual bool init();
  11. virtual void setPosition(float x, float y);
  12. void throwBall();
  13. CREATE_FUNC(Ball);
  14. bool superball;
  15. void setSuperball();
  16. void resetNormalball();
  17. private:
  18. cocos2d::DrawNode* ball_draw;
  19. cocos2d::DrawNode* superball_draw;
  20. };
  21. #endif /* Ball_h */