GRA RPG  DM & KK
Projekt na PO3
AddHeroe_Window Class Reference

Class window support add character to user. More...

#include <AddHeroe_Window.h>

Inheritance diagram for AddHeroe_Window:
Window_Base

Public Member Functions

 AddHeroe_Window (int idUser)
 Constructor window. More...
 
 ~AddHeroe_Window ()
 Deconstructor window. More...
 
void Start ()
 Function start showing window with user creation new character. More...
 
- Public Member Functions inherited from Window_Base
 Window_Base (String title, int width, int height, String backroundPath)
 Constructor Class Window_Base. More...
 
 Window_Base ()
 Default Constructor Class Window_Base. More...
 
 ~Window_Base ()
 Destructor Window_Base. More...
 
RenderWindow & getWindows ()
 Function to get make window. More...
 

Public Attributes

Window_Base window
 Base window class use to create window. More...
 
Sprite Logo_Button
 Button to validation add champion to user. More...
 
Font arial
 Used font. More...
 
Text Name
 Name of new character. More...
 
DBcontroler dbcontroler
 Data base controller. More...
 
string name
 Name of new character. More...
 
int profession
 Profession id. More...
 
int flaga
 Flag to selection class profession. More...
 
int choose
 Player selection witch class selected. More...
 
RectangleShape rectangle_name
 Mouse click field to enter user name character. More...
 
RectangleShape rectangle_add
 Mouse click field to validate the data. More...
 
RectangleShape * rectangle_choose
 Mouse click field to check proffesion of character. More...
 
- Public Attributes inherited from Window_Base
Sprite backroundImage
 Basic background image. More...
 

Additional Inherited Members

- Protected Attributes inherited from Window_Base
Texture background
 
RenderWindow window
 
string title
 
int width
 
int height
 

Detailed Description

Class window support add character to user.

Constructor & Destructor Documentation

◆ AddHeroe_Window()

AddHeroe_Window::AddHeroe_Window ( int  idUser)

Constructor window.

Parameters
idUseruser's id

◆ ~AddHeroe_Window()

AddHeroe_Window::~AddHeroe_Window ( )

Deconstructor window.

Member Function Documentation

◆ Start()

void AddHeroe_Window::Start ( )

Function start showing window with user creation new character.

Member Data Documentation

◆ arial

Font AddHeroe_Window::arial

Used font.

◆ choose

int AddHeroe_Window::choose

Player selection witch class selected.

◆ dbcontroler

DBcontroler AddHeroe_Window::dbcontroler

Data base controller.

◆ flaga

int AddHeroe_Window::flaga

Flag to selection class profession.

◆ Logo_Button

Sprite AddHeroe_Window::Logo_Button

Button to validation add champion to user.

◆ Name

Text AddHeroe_Window::Name

Name of new character.

◆ name

string AddHeroe_Window::name

Name of new character.

◆ profession

int AddHeroe_Window::profession

Profession id.

◆ rectangle_add

RectangleShape AddHeroe_Window::rectangle_add

Mouse click field to validate the data.

◆ rectangle_choose

RectangleShape* AddHeroe_Window::rectangle_choose

Mouse click field to check proffesion of character.

◆ rectangle_name

RectangleShape AddHeroe_Window::rectangle_name

Mouse click field to enter user name character.

◆ window

Window_Base AddHeroe_Window::window

Base window class use to create window.