GRA RPG  DM & KK
Projekt na PO3
Shop_Windows Class Reference

Class shop to representation graphic Window object shop. More...

#include <Shop_Windows.h>

Inheritance diagram for Shop_Windows:
Window_Base

Public Member Functions

 Shop_Windows (Champion *champ, int idUse)
 Constructor Class Shop_Windows. More...
 
 ~Shop_Windows ()
 Destructor Shop_Windows. More...
 
void Start ()
 Function start showing window. More...
 
bool moneycheck (int money)
 Function checks if the character has enough cash. 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...
 

Additional Inherited Members

- Public Attributes inherited from Window_Base
Sprite backroundImage
 Basic background image. More...
 
- Protected Attributes inherited from Window_Base
Texture background
 
RenderWindow window
 
string title
 
int width
 
int height
 

Detailed Description

Class shop to representation graphic Window object shop.

Constructor & Destructor Documentation

◆ Shop_Windows()

Shop_Windows::Shop_Windows ( Champion champ,
int  idUse 
)

Constructor Class Shop_Windows.

Parameters
champ- character witch enter to window
idUse- user's id

◆ ~Shop_Windows()

Shop_Windows::~Shop_Windows ( )

Destructor Shop_Windows.

Member Function Documentation

◆ moneycheck()

bool Shop_Windows::moneycheck ( int  money)

Function checks if the character has enough cash.

Parameters
money- the money held by character
Returns
true or false

◆ Start()

void Shop_Windows::Start ( )

Function start showing window.