MisterEpic

Ball.h

Apr 6th, 2012
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #ifndef BALL_H
  2. #define BALL_H
  3.  
  4. #include <SFML/Graphics.hpp>
  5. #include <SFML/Audio.hpp>
  6.  
  7. class Ball
  8. {
  9.     private:
  10.         sf::RenderWindow *App;
  11.         sf::Sprite sprite;
  12.         sf::Sound sBounceWall;
  13.         sf::Sound sBouncePaddle;
  14.         float speed;
  15.         float angle;
  16.     public:
  17.         Ball(sf::RenderWindow *App);
  18.         ~Ball(){};
  19.         bool refresh(sf::Sprite *LeftPaddle, sf::Sprite *RightPaddle);
  20.         sf::Sprite getSprite();
  21. };
  22.  
  23. #endif
Advertisement
Add Comment
Please, Sign In to add comment