2 #ifndef CLIENT__GRAPHICCARD__H
3 #define CLIENT__GRAPHICCARD__H
6 #include <SFML/Graphics.hpp>
12 class TextureDisplayer;
16 #include "TextureDisplayer.hpp"
26 std::unique_ptr<client::TextureDisplayer> texture;
27 std::unique_ptr<sf::Text> title;
29 std::array<std::string, 4> allBodiesString;
30 std::unique_ptr<sf::Text> body;
34 std::unique_ptr<sf::Text> nbOfBoxesText;
36 float upScaleProportion;
40 std::unique_ptr<Button> validateButton;
44 GraphicCard (
const std::string& path,
const Json::Value& dataNumber,
const float windowLength,
const float windowWidth,
int index, sf::Font& font);
45 GraphicCard (
const std::string& path,
float actionProportion,
const float windowLength,
const float windowWidth,
int actionCardNumber,
int index);
class GraphicCard -
Definition: GraphicCard.hpp:22
void moveUpPriorityCard()
Move up a priority card when we click on it.
Definition: GraphicCard.cpp:62
void setPositionPriorityCardTexts(sf::Text &text, int refXOffset, int refYOffset, int xOffset, int yOffset)
Set position of all the different texts on a priority card.
Definition: GraphicCard.cpp:96
void movePriorityCardElements(const Json::Value &dataNumber)
Move all the elements of a priority card if we move one (title, body, play button,...
Definition: GraphicCard.cpp:109