-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.h
52 lines (46 loc) · 880 Bytes
/
map.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
42
43
44
45
46
47
48
49
50
51
52
#ifndef MAP_H
#define MAP_H
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <vector>
#include "enums.h"
#include "actor.h"
using namespace sf;
class Actor;
class Map {
private:
Image grassTexture;
Image wallTexture;
Image boxTexture;
Image exitTexture;
Image playerTexture;
Image exitBoxTexture;
int sizeX;
int sizeY;
int currLevel;
std::vector<std::string> tileMap= {
"XXXXXXXXXX",
"X X",
"X *XXX X",
"XX @ X",
"XX XXX X X",
"XX * * X.X",
"X X X.X",
"X X X.X",
"X X",
"XXXXXXXXXX"};
void loadTextures();
public:
Map(int level);
std::vector<std::vector<Tile>> tile;
void draw(RenderWindow *window);
int getSizeX();
int getSizeY();
void loadLevel(int level);
void print();
void nextLevel();
};
#endif // MAP_H