SFML Pong, but object oriented

Game.h 447B

123456789101112131415161718
  1. #include <SFML/Graphics.hpp>
  2. #include <SFML/Audio.hpp>
  3. class Game {
  4. private:
  5. sf::Clock AITimer,
  6. clock;
  7. sf::Time AITime;
  8. float paddleSpeed,
  9. rightPaddleSpeed,
  10. ballAngle;
  11. bool isPlaying;
  12. const int gameWidth = 800, gameHeight = 600;
  13. public:
  14. Game();
  15. void whilePlaying(Paddle leftPaddle, Paddle rightPaddle, Ball ball, sf::Window window);
  16. };