4 Mapa::Mapa(std::string name
, Game
* g
) {
7 loader
.load(name
,this);
11 std::list
<Platform
*>::iterator it
;
12 for (it
= platforms
.begin(); it
!= platforms
.end(); it
++)
14 game
->removePlatforms();
17 void Mapa::setTamanho(double width
, double height
) {
22 void Mapa::setSpawn(Ponto spawn
) {
23 game
->setSpawn(spawn
);
26 void Mapa::novaPlataforma(double xmin
, double ymin
, double xmax
, double ymax
, bool pass
) {
27 Linha
l(xmin
, ymin
, xmax
, ymax
);
28 Platform
*plat
= new Platform(l
, pass
);
29 platforms
.push_front(plat
);
30 game
->addPlatform(plat
);
33 void Mapa::desenha() {
34 std::list
<Platform
*>::iterator it
;
35 for (it
= platforms
.begin(); it
!= platforms
.end(); it
++)