This repository has been archived on 2023-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
mipt_cpp/seminar13_polymorphism/arkanoid/paddle.hpp
2023-01-04 14:37:54 +03:00

19 lines
354 B
C++

#pragma once
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
struct Paddle
{
inline static const sf::Color color {sf::Color::White};
sf::Vector2f position;
sf::Vector2f size;
Paddle();
Paddle(sf::Vector2f position, sf::Vector2f size);
sf::FloatRect getBorder() const;
void draw(sf::RenderWindow& window);
};