#303: Typo fixes from mathnerd314
[supertux.git] / src / object / tilemap.hpp
index d6ee518..42334bc 100644 (file)
@@ -42,7 +42,7 @@ class Tile;
 class TileSet;
 
 /**
- * This class is reponsible for drawing the level tiles
+ * This class is responsible for drawing the level tiles
  */
 class TileMap : public GameObject, public Serializable, public ScriptInterface
 {
@@ -90,6 +90,11 @@ public:
   float get_y_offset() const
   { return y_offset; }
 
+  const Vector& get_movement() const
+  {
+    return movement;
+  }
+
   void set_x_offset(float x_offset)
   { this->x_offset = x_offset; }
 
@@ -162,6 +167,7 @@ private:
   int z_pos;
   float x_offset;
   float y_offset;
+  Vector movement; /**< The movement that happened last frame */
 
   DrawingEffect drawing_effect;
   float alpha; /**< requested tilemap opacity */