1234567891011121314151617181920 |
- #include <SFML/Graphics.hpp>
- #include <SFML/Audio.hpp>
-
- class Paddle : public sf::RectangleShape {
- private:
- float x,
- y;
- sf::Vector2f size;
-
- public:
- Paddle();
- void move(float x, float y);
- void draw(sf::RenderWindow);
- float getX() const;
- float getY() const;
- sf::Vector2f getSize() const;
- void setPosition(float x, float y);
- void render(sf::RenderWindow) const;
-
- };
|