Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef BALL_HPP
- #define BALL_HPP
- #include <iostream>
- #include <SFML\Graphics.hpp>
- class Ball
- {
- public:
- Ball(std::string texturePath, sf::Vector2f position, double scale, bool filled, int ballNumber, double rotation);
- ~Ball();
- void update(float frametime);
- void render(sf::RenderWindow *rw);
- void handle();
- void collisionWall();
- void getsInWhole();
- bool alive;
- const sf::Sprite &getSprite() {return *pSprite;};
- private:
- sf::Texture *pTexture;
- sf::Sprite *pSprite;
- double x;
- double y;
- };
- #endif
Add Comment
Please, Sign In to add comment