-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.h
67 lines (56 loc) · 1.16 KB
/
menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#include <SFML/Graphics.hpp>
#include<iostream>
#include <SFML/Window.hpp>
using namespace std;
using namespace sf;
class GameMenu
{
//Okno aplikacji
RenderWindow* window;
//Wymiary okna
float x;
float y;
//Zmienne odpowiedzialne za poruszanie sie po grze
int mod; //Ktore okno wyswietla
int choiceMode; //Ktory wybor
int i_amount; //Ilosc rozgrywek
//Zmienne odpowiedzialne za ture gracza i przyznawanie punktow
int gracz;
int punkty_gracz_1;
int punkty_gracz_2;
int ktora_tura;
int poprzednia_tura;
//Wektory odpowiedzialne za zapisanie wyborów gracza
vector<int> vecChoices;
public:
GameMenu(float=800,float=650,string=("Okno aplikacji"));
virtual ~GameMenu();
void setUpMenu();
};
class Sprites
{
public:
sf::Vector2f position;
sf::Texture texture;
sf::Sprite sprite;
bool isButton;
//Tworzy sprite
bool setUpSprite(string);
Sprites(string, float, float,bool);
virtual ~Sprites();
//void Starting_Menu();
//void how_to_play();
};
class Texts
{
public:
wstring line;
sf::Font font;
sf::Text text;
sf::Vector2f position;
//Tworzy tekst
Texts(wstring,string,int,float,float);
virtual ~Texts();
bool setUpText(string);
};