X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Ftilemap.h;h=b56ce0bcedbd7d817d11f96317195cab233951c5;hb=ddc3b7ef2077567d368e244a292b41187311e8e3;hp=ecf8d10306ff21cd5c5ea826f3cd60565220f1f4;hpb=ef57479f613b900b73eba8e8f4d026aae0de25cc;p=supertux.git diff --git a/src/object/tilemap.h b/src/object/tilemap.h index ecf8d1030..b56ce0bce 100644 --- a/src/object/tilemap.h +++ b/src/object/tilemap.h @@ -16,14 +16,13 @@ // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - #ifndef SUPERTUX_TILEMAP_H #define SUPERTUX_TILEMAP_H #include #include -#include "special/game_object.h" +#include "game_object.h" #include "serializable.h" #include "math/vector.h" @@ -31,8 +30,6 @@ namespace lisp { class Lisp; } -using namespace SuperTux; - class Level; class TileManager; class Tile; @@ -61,10 +58,6 @@ 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; } @@ -86,8 +79,19 @@ public: void change_at(const Vector& pos, uint32_t newtile); + TileManager* get_tilemanager() const + { + return tilemanager; + } + + void set_drawing_effect(int effect) + { + drawing_effect = effect; + } + private: - std::vector tiles; + typedef std::vector Tiles; + Tiles tiles; private: TileManager* tilemanager; @@ -96,7 +100,7 @@ private: int width, height; int layer; - bool vertical_flip; + int drawing_effect; }; #endif /*SUPERTUX_TILEMAP_H*/