-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMapa.h
38 lines (34 loc) · 917 Bytes
/
Mapa.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
#ifndef MAPA_H
#define MAPA_H
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include <fstream>
#include <iostream>
#include <vector>
#include "Plataforma.h"
#include "PlataformaMovible.h"
#include "PlataformaInvisible.h"
#include "Enemigo.h"
#include "Planta.h"
#include "Bomba.h"
#include "Tile.h"
#include "Padre.h"
using namespace std;
class Mapa : public Padre
{
public:
vector<Tile*> tiles;
vector<Plataforma*> plataformas;
vector<Enemigo*> enemigos;
int height;
int width;
SDL_Surface* imagen, *IMGplataformas[2], *ambiente, *enemigoIMG[2], *imgTorre;
Mapa(int h,int w);
virtual ~Mapa();
void crear(const char* File);
void render(SDL_Surface* screen, int xMapa, int yMapa);
protected:
private:
void applySurface(int x, int y, SDL_Surface* source, SDL_Surface* destination, int tipoT);
};
#endif // MAPA_H