// // Created by David Hackbarth on 27.02.26. // #ifndef CMAKESFMLPROJECT_PADDLE_H #define CMAKESFMLPROJECT_PADDLE_H #include "SFML/Graphics/RectangleShape.hpp" #include "SFML/Window/Keyboard.hpp" class Paddle { public: Paddle(sf::Keyboard::Key upKey, sf::Keyboard::Key downKey); sf::RectangleShape& getShape() { return _shape; } void Update(float dt); private: sf::RectangleShape _shape; sf::Keyboard::Key _upKey; sf::Keyboard::Key _downKey; }; #endif //CMAKESFMLPROJECT_PADDLE_H