-
Notifications
You must be signed in to change notification settings - Fork 0
/
Level.h
35 lines (34 loc) · 791 Bytes
/
Level.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
#ifndef LEVEL_H
#define LEVEL_H
#include <SFML/Graphics.hpp>
#include <vector>
#include "TextureManager.h"
#include "Enemy.h"
#include "Player.h"
#include "Background.h"
#include "Bullet.h"
#include "Config.h"
class Level {
private:
Config cfg;
TextureManager *textMan;
sf::RenderWindow *window;
Background *background;
Player *player;
std::vector<Enemy*> enVector;
sf::Texture plTexture;
sf::Texture bgTexture;
sf::Texture enTexture;
sf::Texture bulTexture;
sf::Clock levelClock;
sf::Clock enIncClock;
int res[2];
int maxPoints;
float maxTime;
int levType;
public:
Level(sf::RenderWindow *nWindow, int enNum, int nRes[2], int nMaxPoints, float nMaxTime, int levType, Player *nPlayer, TextureManager *nTextMan, std::string textures[3]);
~Level();
bool main();
};
#endif