-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.hpp
49 lines (35 loc) · 962 Bytes
/
Events.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
#ifndef EVENTS_H
#define EVENTS_H
#include <iostream>
#include <string.h>
#include <vector>
#include <map>
// SDL Requierments:
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
// Reliant Classes
#include "Pics.hpp"
#include "Text.hpp"
#include "Win.hpp"
using namespace std;
class Events
{
public:
Events();
~Events();
// Image Management Public:
Pics p;
Text txt;
Win w;
void getScreenParameters(int sc_hth, int sc_wdth);
// Major game Events:
void callText(SDL_Renderer& render, int event);
void showPoint(SDL_Renderer& render, int event, int bee_score, int wasp_score);
vector<int> callPoint(int bee_score, int wasp_score, int ball_x, SDL_Renderer& render);
int callEndGame(int bee_score, int wasp_score, int event);
private:
int sc_hth, sc_wdth;
bool winer;
bool win_team;
};
#endif // EVENTS_H