-
Notifications
You must be signed in to change notification settings - Fork 0
/
Level.h
39 lines (35 loc) · 917 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
36
37
38
#pragma once
#include "stdafx.h"
#include <list>
#include "GameObject.h"
#include "SpawnLine.h"
class GameEngine;
class Level
{
private:
float limitsX[2],limitsY[2];
std::list<SpawnLine *> spawnLines;
unsigned int spawnLinesCount;
const char *filename;
GameEngine *engine;
unsigned int backgroundTextureId,briefingScreenTextureId;
bool finished;
unsigned int cellCount;
char *briefingScreenFileName;
public:
Level(const char *filename, GameEngine *engine);
~Level();
float *getLimitsX();
float *getLimitsY();
void load();
void init();
void update();
bool isFinished();
void setGameEngine(GameEngine *engine);
char *getBriefingScreenFileName();
unsigned int getBriefingScreenTextureId();
unsigned int getBackgroundTextureId();
GameEngine * getGameEngine();
GameObject **instantiateObjects(const char *className, unsigned int count);
GameObject *instantiateObject(ObjectType objectType);
};