Badguys from the start of the level were not appearing. Fixed.
[supertux.git] / src / tilemap.h
index fa39f2a..92d121d 100644 (file)
 
 #include <vector>
 
-#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
@@ -48,6 +53,7 @@ class TileMap : public GameObject, public Serializable
 public:
   TileMap();
   TileMap(LispReader& reader);
+  TileMap(int layer_, bool solid_, size_t width_, size_t height_);
   virtual ~TileMap();
 
   virtual void write(LispWriter& writer);
@@ -63,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; }
 
@@ -95,6 +105,8 @@ private:
   float speed;
   int width, height;
   int layer;
+
+  bool vertical_flip;
 };
 
 #endif /*SUPERTUX_TILEMAP_H*/