Civilization
|
class PopUpWindow - More...
#include <PopUpWindow.hpp>
Public Member Functions | |
PopUpWindow (int windowLength, int windowWidth, const Json::Value &data, bool isActive) | |
Constructor Constructor of PopUpWindow class. More... | |
void | drawValidateBoxesButtons (std::shared_ptr< sf::RenderWindow > window) |
Function to draw the elements of the validate boxes window. | |
void | drawWinnerWindow (std::shared_ptr< sf::RenderWindow > window) |
Function to draw the elements of the winner window. | |
void | centerText () |
Function to center the text on the winner window. | |
void | setUpValidateBoxesWindow () |
Function to set the window to choose the number of cases to use. | |
Public Attributes | |
std::unique_ptr< Button > | blackBackground |
std::unique_ptr< TextureDisplayer > | littleBackground |
sf::Font | font |
std::unique_ptr< Button > | chooseNumberOfBoxesButton |
std::unique_ptr< TextureDisplayer > | arrowLessTexture |
std::unique_ptr< TextureDisplayer > | arrowMoreTexture |
bool | isWindowActive = false |
std::unique_ptr< TextureDisplayer > | doneTexture |
int | priorityCardPlayed |
std::string | priorityCardPlayedType |
std::unique_ptr< sf::Text > | title |
GameWindow * | gameWindow = nullptr |
int | nbOfBoxesChosen |
int | nbOfBoxesMax |
std::unique_ptr< sf::Text > | body |
Json::Value | data |
int | windowLength |
int | windowWidth |
class PopUpWindow -
PopUpWindow::PopUpWindow | ( | int | windowLength, |
int | windowWidth, | ||
const Json::Value & | data, | ||
bool | isActive | ||
) |
Constructor Constructor of PopUpWindow class.
windowLength | length of the window |
windowWidth | width of the window |
data | data of the json file (parameters of the buttons) |
isActive | true: the window is the validate boxes window, false: the window is the winner window |