Consertado spawn do mapa 2
[Projeto-PCG.git] / mapa.h
blobecbc7e7772c7fa7f1bb8f5bfb9d097863965be28
1 #ifndef MAPA_H
2 #define MAPA_H
4 #include <list>
5 #include <string>
7 #include "geometry.h"
8 #include "platform.h"
9 #include "game.h"
11 class Player;
12 class Game;
13 class WeaponItem;
15 class Mapa {
16 private:
17 Ponto tamanho;
18 std::list<Platform*> platforms;
19 public:
20 Game *game;
21 std::list<WeaponItem*> items;
22 Mapa(std::string name, Game *g);
23 ~Mapa();
24 void novaPlataforma(double xmin, double ymin, double xmax, double ymax, bool pass, double r, double g, double b);
25 void dropWeapon(std::string name, Ponto p);
26 void desenha();
27 void setSpawn(Ponto spawn);
28 double xmax();
29 double ymax();
30 void setTamanho(double width, double height);
31 void move();
34 #endif