1234567891011121314151617181920212223242526272829 |
- #ifndef _BALL_
- #define _BALL_
- #include <vector>
- #include "mesh.h"
- /* Ball
- * These two are seperated for better collision detection
- * increaseSpeed() - increases ball speed up to a maximum value
- * resetSpeed() - reset speed to starting value
- */
- class Ball : public Mesh
- {
- public:
- //Constructor
- Ball();
- //Actions
- void increaseSpeed();
- void resetSpeed();
- //Moving parameters
- float speed, toX, toZ;
- };
- #endif
|