Civilization
Public Member Functions | Public Attributes | List of all members
client::PopUpWindow Class Reference

class PopUpWindow - More...

#include <PopUpWindow.hpp>

Collaboration diagram for client::PopUpWindow:
Collaboration graph
[legend]

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< ButtonblackBackground
 
std::unique_ptr< TextureDisplayerlittleBackground
 
sf::Font font
 
std::unique_ptr< ButtonchooseNumberOfBoxesButton
 
std::unique_ptr< TextureDisplayerarrowLessTexture
 
std::unique_ptr< TextureDisplayerarrowMoreTexture
 
bool isWindowActive = false
 
std::unique_ptr< TextureDisplayerdoneTexture
 
int priorityCardPlayed
 
std::string priorityCardPlayedType
 
std::unique_ptr< sf::Text > title
 
GameWindowgameWindow = nullptr
 
int nbOfBoxesChosen
 
int nbOfBoxesMax
 
std::unique_ptr< sf::Text > body
 
Json::Value data
 
int windowLength
 
int windowWidth
 

Detailed Description

class PopUpWindow -

Constructor & Destructor Documentation

◆ PopUpWindow()

PopUpWindow::PopUpWindow ( int  windowLength,
int  windowWidth,
const Json::Value &  data,
bool  isActive 
)

Constructor Constructor of PopUpWindow class.

Parameters
windowLengthlength of the window
windowWidthwidth of the window
datadata of the json file (parameters of the buttons)
isActivetrue: the window is the validate boxes window, false: the window is the winner window

The documentation for this class was generated from the following files: