-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameState.h
57 lines (51 loc) · 1.36 KB
/
GameState.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
#ifndef GAME_CLIENT_GAMESTATE_H
#define GAME_CLIENT_GAMESTATE_H
#include "Vehicle.h"
#include "Base.h"
#include "Bullet.h"
#include "Shield.h"
#include "Generator.h"
#include "Powerup.h"
#include "Rocket.h"
#include "GravityWell.h"
#include <iostream>
#include <vector>
#define RED_TEAM 0
#define BLUE_TEAM 1
class GameState
{
private:
std::vector<Vehicle*>* players;
std::vector<Base*>* bases;
std::vector<Bullet*>* bullets;
std::vector<Shield*>* shields;
std::vector<Generator*>* generators;
std::vector<Powerup*>* powerups;
std::vector<Rocket*>* rockets;
std::vector<GravityWell*>* gravityWells;
int gameOver;
int secToRestart;
public:
GameState();
void addPlayer(Vehicle* add);
void addBase(Base* add);
void addBullet(Bullet* add);
void addShield(Shield* add);
void addGenerator(Generator* add);
void addPowerup(Powerup* add);
void addRocket(Rocket* add);
void addGravityWell(GravityWell* add);
void setGameOver(int gameOver);
void setSecToRestart(int secToRestart);
std::vector<Vehicle*>* getPlayers();
std::vector<Base*>* getBases();
std::vector<Bullet*>* getBullets();
std::vector<Shield*>* getShields();
std::vector<Generator*>* getGenerators();
std::vector<Powerup*>* getPowerups();
std::vector<Rocket*>* getRockets();
std::vector<GravityWell*>* getGravityWells();
int getGameOver();
int getSecToRestart();
};
#endif //GAME_CLIENT_GAMESTATE_H