#ifndef HOLESOME_MULTIPLAYER_BORDERS_HPP #define HOLESOME_MULTIPLAYER_BORDERS_HPP #include "../game_object.h" class MultiplayerBorders : public GameObject { public: explicit MultiplayerBorders(int firstRowViewCount = 0, int secondRowViewCount = 0); void draw(sf::RenderWindow *window) override; void createBorders(int firstRowViewCount, int secondRowViewCount = 0); private: sf::VertexArray lines{}; sf::View* view = nullptr; void createRowOfLines(int startIndex, int count, float topOffset, float height); void createLine(int lineIndex, sf::Vector2f firstPoint, sf::Vector2f secondPoint); }; #endif //HOLESOME_MULTIPLAYER_BORDERS_HPP