-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEndGUI.h
More file actions
47 lines (36 loc) · 909 Bytes
/
Copy pathEndGUI.h
File metadata and controls
47 lines (36 loc) · 909 Bytes
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
#ifndef ENDGUI_H
#define ENDGUI_H
#include <SDL2/SDL_mixer.h>
#include "Board.h"
#include "GUI.h"
#include "TextureWrapper.h"
class EndGUI: public GUI {
public:
EndGUI(SDL_Renderer* renderer);
void draw(SDL_Renderer* renderer);
void setPlayer(int p);
void setWinner(int w);
void destroyMedia();
private:
TextureWrapper backgroundWin, backgroundLose, menuButton;
TextureWrapper youWinTxt, youLoseTxt, whiteWinTxt, blackWinTxt, drawTxt;
static const int textX;
static const int textY;
static const int buttonX;
static const int buttonY;
/**
* 0: white single player
* 1 black single player
* 2 2 players
*/
int player;
/**
* 0: white wins
* 1: black wins
* 2: draw
*/
int winner;
Mix_Chunk* failSFX;
Mix_Chunk* winSFX;
};
#endif // ENDGUI_H