-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.hpp
62 lines (46 loc) · 1.1 KB
/
Game.hpp
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 GAME_H
#define GAME_H
#include <iostream>
#include <string.h>
#include <map>
// SDL Requierments:
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
// Reliant Classes
#include "Events.hpp"
#include "Text.hpp"
#include "AI.hpp"
using namespace std;
class Game
{
public:
Game(string title, int width, int height);
~Game();
void loop();
void update();
void render();
void input();
private:
SDL_Renderer* ren;
SDL_Window* win;
// Game Management Variables:
bool game_running;
int count;
int frame_count, timer_fps, last_frame;
int sc_wdth, sc_hth;
bool full;
// Image Management Variables:
Events ev;
AI ai;
int ball_x, ball_y;
int paddle_speed, speed;
// Game Play Management Variables:
bool team;
int event, selection;
int bee_score, wasp_score;
vector<int> score;
int bee_paddle_y, wasp_paddle_y;
int player_paddle_y, tmp_player_paddle_y;
vector<int> paddle_ball;
};
#endif // GAME_H