Ball.h 434 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Ball.h
  3. // RedCore2
  4. //
  5. // Created by Gabriel Capella on 31/05/17.
  6. //
  7. //
  8. #ifndef Ball_h
  9. #define Ball_h
  10. #include "cocos2d.h"
  11. class Ball : public cocos2d::Node {
  12. public:
  13. virtual bool init();
  14. void throwBall();
  15. bool onContactBegin(cocos2d::PhysicsContact& contact);
  16. // implement the "static create()" method manually
  17. CREATE_FUNC(Ball);
  18. private:
  19. };
  20. #endif /* Ball_h */