GRA RPG  DM & KK
Projekt na PO3
Map_Windows Class Reference

Class use to show graphic city and supporting all activities Inherits a Window_Base. More...

#include <Map_Windows.h>

Inheritance diagram for Map_Windows:
Window_Base

Public Member Functions

 Map_Windows (String title, int width, int height, String backroundPath, Champion *champ, int idUser)
 Constructor Class Map_Windows. More...
 
 Map_Windows ()
 Default constructor Class Map_Windows. More...
 
 ~Map_Windows ()
 Destructor Map_Windows. More...
 
void Start ()
 Function start showing a graphic interface. More...
 
void setPosition_figure (int, int)
 Function to set position character after back to a other activity. 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
 Object base class use to create graphic window interface. More...
 
View_Item viewItem_key_shop
 Object class View_Item use to show some graphics image. More...
 
View_Item viewItem_key_arena
 Object class View_Item use to show some graphics image. More...
 
View_Item viewItem_key_rest
 Object class View_Item use to show some graphics image. More...
 
View_Item viewItem_figure
 Object class View_Item use to show some graphics image. More...
 
sf::Clock clock
 Object helping to create animations. More...
 
IntRect rectSourceSprite
 Object helping to create animations. More...
 
DBcontroler dbcontroler
 Object use to connect a database. More...
 
RectangleShape col_l_u_1
 Object use to collision on a some object. More...
 
RectangleShape col_l_u_2
 Object use to collision on a some object. More...
 
RectangleShape col_r_u_1
 Object use to collision on a some object. More...
 
RectangleShape col_r_u_2
 Object use to collision on a some object. More...
 
RectangleShape col_l_d_1
 Object use to collision on a some object. More...
 
RectangleShape col_l_d_2
 Object use to collision on a some object. More...
 
RectangleShape col_r_d_1
 Object use to collision on a some object. More...
 
RectangleShape col_r_d_2
 Object use to collision on a some object. More...
 
RectangleShape col_r_d_3
 Object use to collision on a some object. 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 use to show graphic city and supporting all activities Inherits a Window_Base.

Constructor & Destructor Documentation

◆ Map_Windows() [1/2]

Map_Windows::Map_Windows ( String  title,
int  width,
int  height,
String  backroundPath,
Champion champ,
int  idUser 
)

Constructor Class Map_Windows.

Parameters
title- Title a windows
width- Width window
height- Height window
champ-Object type Champion use to refresh value
idUser- Id User with a database

◆ Map_Windows() [2/2]

Map_Windows::Map_Windows ( )

Default constructor Class Map_Windows.

◆ ~Map_Windows()

Map_Windows::~Map_Windows ( )

Destructor Map_Windows.

Member Function Documentation

◆ setPosition_figure()

void Map_Windows::setPosition_figure ( int  x,
int  y 
)

Function to set position character after back to a other activity.

◆ Start()

void Map_Windows::Start ( )

Function start showing a graphic interface.

Member Data Documentation

◆ clock

sf::Clock Map_Windows::clock

Object helping to create animations.

◆ col_l_d_1

RectangleShape Map_Windows::col_l_d_1

Object use to collision on a some object.

◆ col_l_d_2

RectangleShape Map_Windows::col_l_d_2

Object use to collision on a some object.

◆ col_l_u_1

RectangleShape Map_Windows::col_l_u_1

Object use to collision on a some object.

◆ col_l_u_2

RectangleShape Map_Windows::col_l_u_2

Object use to collision on a some object.

◆ col_r_d_1

RectangleShape Map_Windows::col_r_d_1

Object use to collision on a some object.

◆ col_r_d_2

RectangleShape Map_Windows::col_r_d_2

Object use to collision on a some object.

◆ col_r_d_3

RectangleShape Map_Windows::col_r_d_3

Object use to collision on a some object.

◆ col_r_u_1

RectangleShape Map_Windows::col_r_u_1

Object use to collision on a some object.

◆ col_r_u_2

RectangleShape Map_Windows::col_r_u_2

Object use to collision on a some object.

◆ dbcontroler

DBcontroler Map_Windows::dbcontroler

Object use to connect a database.

◆ rectSourceSprite

IntRect Map_Windows::rectSourceSprite

Object helping to create animations.

◆ viewItem_figure

View_Item Map_Windows::viewItem_figure

Object class View_Item use to show some graphics image.

◆ viewItem_key_arena

View_Item Map_Windows::viewItem_key_arena

Object class View_Item use to show some graphics image.

◆ viewItem_key_rest

View_Item Map_Windows::viewItem_key_rest

Object class View_Item use to show some graphics image.

◆ viewItem_key_shop

View_Item Map_Windows::viewItem_key_shop

Object class View_Item use to show some graphics image.

◆ window

Window_Base Map_Windows::window

Object base class use to create graphic window interface.