X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftilemap.h;h=92d121dfce8be50d65cfe37eb39ca498c070c69c;hb=546364c9567ef212ea9276201facf73f5ada696a;hp=c46435542a36401d9f480869fbccb2d042705718;hpb=b19aa4f5b8e4bb2382efb0144d70551c1adc4b60;p=supertux.git diff --git a/src/tilemap.h b/src/tilemap.h index c46435542..92d121dfc 100644 --- a/src/tilemap.h +++ b/src/tilemap.h @@ -22,13 +22,18 @@ #include -#include "game_object.h" +#include "special/game_object.h" #include "serializable.h" -#include "vector.h" +#include "math/vector.h" + +using namespace SuperTux; + +namespace SuperTux { +class LispReader; +} class Level; class TileManager; -class LispReader; class Tile; struct TileId @@ -64,6 +69,10 @@ public: */ void resize(int newwidth, int newheight); + /** Flip the all tile map vertically. The purpose of this is to let + player to play the same level in a different way :) */ + void do_vertical_flip(); + size_t get_width() const { return width; } @@ -96,6 +105,8 @@ private: float speed; int width, height; int layer; + + bool vertical_flip; }; #endif /*SUPERTUX_TILEMAP_H*/