-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathlevelmanager.h
More file actions
42 lines (30 loc) · 750 Bytes
/
levelmanager.h
File metadata and controls
42 lines (30 loc) · 750 Bytes
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
#ifndef LEVELMANAGER_H
#define LEVELMANAGER_H
#include "level.h"
#include "windowbase.h"
#include <QObject>
class LevelManager : public QObject
{
Q_OBJECT
public:
LevelManager(WindowBase* parentWidget, Game *game, QString lvlPath);
~LevelManager();
Level* openArea(int id);
void closeArea(Level* area);
int addArea(int id);
int removeArea(Level* level);
void openAreaEditor(int id);
int getOpenedAreaCount();
bool areaIsOpen(int id);
int getAreaCount();
bool hasArea(int id);
WindowBase* getParent();
Game* getGame();
private:
SarcFilesystem* archive;
WindowBase* parentWidget;
Game* game;
QString lvlPath;
QList<Level*> openedAreas;
};
#endif // LEVELMANAGER_H