MisterEpic

ComputerPaddle.h

Apr 6th, 2012
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #ifndef COMPAD_H
  2. #define COMPAD_H
  3.  
  4. #include "Paddle.h"
  5. #include "Ball.h"
  6.  
  7. #include <SFML/Graphics.hpp>
  8. #include <SFML/Audio.hpp>
  9.  
  10. class ComputerPaddle : public Paddle
  11. {
  12.     private:
  13.         sf::Clock AITimer;
  14.         float AITime;
  15.         Ball *ball;
  16.     public:
  17.         ComputerPaddle(sf::RenderWindow *App, int idPlayer, Ball* ball) : Paddle(App, idPlayer), AITime(0.1f), ball(ball){};
  18.         ~ComputerPaddle(){};
  19.         void refresh();
  20. };
  21.  
  22. #endif // COMPAD_H
Advertisement
Add Comment
Please, Sign In to add comment