ball.h 426 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _BALL_
  2. #define _BALL_
  3. #include <vector>
  4. #include "mesh.h"
  5. /* Ball
  6. * These two are seperated for better collision detection
  7. * increaseSpeed() - increases ball speed up to a maximum value
  8. * resetSpeed() - reset speed to starting value
  9. */
  10. class Ball : public Mesh
  11. {
  12. public:
  13. //Constructor
  14. Ball();
  15. //Actions
  16. void increaseSpeed();
  17. void resetSpeed();
  18. //Moving parameters
  19. float speed, toX, toZ;
  20. };
  21. #endif