some fixes for the text object
[supertux.git] / src / object / tilemap.h
index ecf8d10..b56ce0b 100644 (file)
 //  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 <vector>
 #include <stdint.h>
 
-#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<uint32_t> tiles;
+  typedef std::vector<uint32_t> 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*/