GRA RPG  DM & KK
Projekt na PO3
Menu Class Reference

Class Menu represent window Menu inherit Window_Base. More...

#include <Menu.h>

Inheritance diagram for Menu:
Window_Base

Public Member Functions

 Menu ()
 Defalut Constructor Menu. More...
 
 Menu (String, int, int, String, int idUser)
 Constructor Menu. More...
 
 ~Menu ()
 Destructor Menu. More...
 
void Start ()
 Function start showing a graphic interface. 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

Sprite backroundTable
 Object Sprite use to show table. More...
 
Texture backgroundTab
 Object Texture use to load image. More...
 
Window_Base window
 Object a base window class use to create window. More...
 
string title
 Values use to keep name widow. More...
 
int width
 Width windows. More...
 
int height
 Height window. More...
 
Texture background
 Texture use to load backround image. More...
 
Sprite backroundImage
 Sprite use to showing a background. More...
 
Button buttonStart
 Object buttton to create and show button. More...
 
Button buttonExit
 Object buttton to create and show button. More...
 
DBcontroler dbcontroler
 Object class DBController use to connect a database. More...
 
MYSQL_RES * res
 Object use to hold a database get value. More...
 
MYSQL_ROW row
 Object hold a row witch data get with database. More...
 
Font arial
 Value Font to load a font. More...
 
Text ** Text_Data
 Dynamic value Text to show a chammpion in table . More...
 
int choose
 Value to hold a choose. More...
 
int size
 Value hold count a champion get a database. More...
 
RectangleShape * rectangle_choose
 Object use to check who row table is click. More...
 
RectangleShape add_b
 Object use to check if button add is click. More...
 
RectangleShape delete_b
 Object use to check if button delete is click. 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 Menu represent window Menu inherit Window_Base.

Constructor & Destructor Documentation

◆ Menu() [1/2]

Menu::Menu ( )

Defalut Constructor Menu.

◆ Menu() [2/2]

Menu::Menu ( String  title,
int  width,
int  height,
String  backroundPath,
int  idUser 
)

Constructor Menu.

Parameters
String - Title window
int - Wifth window
int - Height window
String - Path to backgrand image
idUser - Value hold in User a database

◆ ~Menu()

Menu::~Menu ( )

Destructor Menu.

Member Function Documentation

◆ Start()

void Menu::Start ( )

Function start showing a graphic interface.

Member Data Documentation

◆ add_b

RectangleShape Menu::add_b

Object use to check if button add is click.

◆ arial

Font Menu::arial

Value Font to load a font.

◆ background

Texture Menu::background

Texture use to load backround image.

◆ backgroundTab

Texture Menu::backgroundTab

Object Texture use to load image.

◆ backroundImage

Sprite Menu::backroundImage

Sprite use to showing a background.

◆ backroundTable

Sprite Menu::backroundTable

Object Sprite use to show table.

◆ buttonExit

Button Menu::buttonExit

Object buttton to create and show button.

◆ buttonStart

Button Menu::buttonStart

Object buttton to create and show button.

◆ choose

int Menu::choose

Value to hold a choose.

◆ dbcontroler

DBcontroler Menu::dbcontroler

Object class DBController use to connect a database.

◆ delete_b

RectangleShape Menu::delete_b

Object use to check if button delete is click.

◆ height

int Menu::height

Height window.

◆ rectangle_choose

RectangleShape* Menu::rectangle_choose

Object use to check who row table is click.

◆ res

MYSQL_RES* Menu::res

Object use to hold a database get value.

◆ row

MYSQL_ROW Menu::row

Object hold a row witch data get with database.

◆ size

int Menu::size

Value hold count a champion get a database.

◆ Text_Data

Text** Menu::Text_Data

Dynamic value Text to show a chammpion in table .

◆ title

string Menu::title

Values use to keep name widow.

◆ width

int Menu::width

Width windows.

◆ window

Window_Base Menu::window

Object a base window class use to create window.