Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef COMPAD_H
- #define COMPAD_H
- #include "Paddle.h"
- #include "Ball.h"
- #include <SFML/Graphics.hpp>
- #include <SFML/Audio.hpp>
- class ComputerPaddle : public Paddle
- {
- private:
- sf::Clock AITimer;
- float AITime;
- Ball *ball;
- public:
- ComputerPaddle(sf::RenderWindow *App, int idPlayer, Ball* ball) : Paddle(App, idPlayer), AITime(0.1f), ball(ball){};
- ~ComputerPaddle(){};
- void refresh();
- };
- #endif // COMPAD_H
Advertisement
Add Comment
Please, Sign In to add comment