-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkeithH.h
62 lines (59 loc) · 1.64 KB
/
keithH.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
#ifndef _keithH_H_
#define _keithH_H_
#include <GL/gl.h>
#include <GL/glu.h>
#include <X11/Xlib.h>
#include <GL/glx.h>
#include <cstdio>
#include <cstring>
#include "fonts.h"
#include <string>
using namespace std;
extern bool TestAll();
class Hud{
private:
int xres;
int yres;
int player1_health;
int player2_health;
bool isAI;
bool is_show_welcome;
bool is_show_help_menu;
bool is_paused;
public:
Hud(const int in_xres, const int in_yres);
bool isPaused();
void setPaused(bool in_is_paused);
bool isShowHelpMenu();
void setIsShowHelpMenu(bool in_is_show_help_menu);
bool isShowWelcome();
void setIsShowWelcome(bool in_is_show_welcome);
void showWelcome(int in_highscore);
void setPlayer1Health(int in_player1_health);
void setPlayer2Health(int in_player2_health);
int getPlayer1Health();
int getPlayer2Health();
void showScore(int in_score1, int in_score2);
void showCourtYard();
void setResolution(int in_xres, int in_yres);
void showHealth(int player1_health, int player2_health);
void selectLeftScreen();
void selectRightScreen();
void showTimer(int timer);
void showGameOver(int in_highscore,int p1_score,int p2_score);
void showIntro(char which_screen, GLuint introTexture, GLuint bgTexture1, GLuint bgTexture2);
void setAI(bool in_AI);
bool getAI();
void showHelpMenu(GLuint help_menu_texture);
void selectAI();
void selectHuman();
void renderBomb(GLuint which_bomb_texture, float bomb_posx, float bomb_posy, float bomb_width, float bomb_height);
void showPaused(GLuint pausedTexture);
//TESTING METHODS:
void testHUDAll();
bool testGetters();
bool testSetters();
bool testImages();
bool testInitializedValues();
};
#endif