Guest User

Ball.hpp

a guest
Mar 23rd, 2016
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #ifndef BALL_HPP
  2. #define BALL_HPP
  3.  
  4. #include <iostream>
  5. #include <SFML\Graphics.hpp>
  6.  
  7. class Ball
  8. {
  9. public:
  10.  
  11. Ball(std::string texturePath, sf::Vector2f position, double scale, bool filled, int ballNumber, double rotation);
  12. ~Ball();
  13.  
  14. void update(float frametime);
  15. void render(sf::RenderWindow *rw);
  16. void handle();
  17.  
  18. void collisionWall();
  19. void getsInWhole();
  20.  
  21. bool alive;
  22.  
  23. const sf::Sprite &getSprite() {return *pSprite;};
  24.  
  25. private:
  26.  
  27. sf::Texture *pTexture;
  28. sf::Sprite *pSprite;
  29.  
  30. double x;
  31. double y;
  32. };
  33.  
  34. #endif
Add Comment
Please, Sign In to add comment