fix cr/lfs and remove trailing whitespaces...
[supertux.git] / src / object / tilemap.hpp
index deb1dbb..cb87573 100644 (file)
@@ -67,9 +67,21 @@ public:
   size_t get_height() const
   { return height; }
 
+  float get_x_offset() const
+  { return x_offset; }
+
+  float get_y_offset() const
+  { return y_offset; }
+
+  void set_x_offset(float x_offset)
+  { this->x_offset = x_offset; }
+
+  void set_y_offset(float y_offset)
+  { this->y_offset = y_offset; }
+
   int get_layer() const
   { return z_pos; }
-  
+
   bool is_solid() const
   { return solid; }
 
@@ -103,7 +115,7 @@ public:
 private:
   typedef std::vector<uint32_t> Tiles;
   Tiles tiles;
-  
+
 private:
   TileManager* tilemanager;
   std::string name;
@@ -111,9 +123,10 @@ private:
   float speed;
   int width, height;
   int z_pos;
+  float x_offset;
+  float y_offset;
 
   DrawingEffect drawing_effect;
 };
 
 #endif /*SUPERTUX_TILEMAP_H*/
-