-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLevel.h
More file actions
73 lines (46 loc) · 1.2 KB
/
Level.h
File metadata and controls
73 lines (46 loc) · 1.2 KB
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
63
64
65
66
67
68
69
70
71
72
73
//
// Created by viviane on 18/11/2021.
//
#ifndef JOGO_LEVEL_H
#define JOGO_LEVEL_H
#include "Player.h"
#include "AssetManager.h"
#include "EntityList.h"
#include "WeakGoblin.h"
#include "StrongGoblin.h"
#include "BossGoblin.h"
#include "InputManager.h"
#include "LevelMaker.h"
#include "CollisionManager.h"
using namespace entities::characters;
namespace levels {
class Level : public Being {
protected:
EntityList* entityList;
LevelMaker levelMaker;
Player* p1;
Player* p2;
sf::Sprite* background;
sf::Vector2f backPosition;
managers::CollisionManager physics;
bool won;
static bool players_alive;
int score;
public:
Level();
Level(Player* p1, Player* p2);
~Level();
void run();
void renderPlayers(int players);
void renderBackground();
void setPosition(float x, float y);
void setBackground(sf::Sprite* background);
sf::Vector2f getPosition();
void setView();
virtual void initializeElements() = 0;
bool isFinished();
bool getPlayersAlive();
int getScore() const;
};
}
#endif //JOGO_LEVEL_H