-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScreen.h
41 lines (38 loc) · 1 KB
/
Screen.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
#pragma once // Specifica che il compilatore include il file di intestazione una sola volta, durante la compilazione di un file di codice sorgente
#include "Entity.h"
#include "Platform.h"
#include "Enemy.h"
#include "Bullet.h"
#include "Bonus.h"
struct livello
{
livello *next;
livello *prev;
Platform p;
Bullet b;
Bonus money;
Enemy enemiesList;
};
typedef livello *p_livello;
class Screen
{
protected:
p_livello level;
int width, height;
int difficolta;
public:
Screen(int width, int height, int difficolta=1);
p_livello generateLevel(int difficolta); // Genera i contenuti del livello attuale
void nextLevel(); // Avanza al livello successivo
bool prevLevel(); // Ritorna al livello precedente
void print(); // Stampa il livello
int getDifficolta();
void setDifficolta(int diff);
Platform getPlatforms();
Bullet getBullet();
void setBullet(Bullet b);
Bonus getBonus();
void setBonus(Bonus b);
Enemy getEnemy();
void setEnemy(Enemy e);
};