+ Vector get_offset() const
+ { return offset; }
+
+ /** Get the movement of this tilemap. The collision detection code may need a
+ * non-negative y-movement. Passing `false' as the `actual' argument will
+ * provide that. Used exclusively in src/supertux/sector.cpp. */
+ Vector get_movement(bool actual) const
+ {
+ if(actual) {
+ return movement;
+ } else {
+ return Vector(movement.x, std::max(0.0f,movement.y));
+ }
+ }
+
+ boost::shared_ptr<Path> get_path()
+ { return path; }
+
+ boost::shared_ptr<PathWalker> get_walker()
+ { return walker; }
+
+ void set_offset(const Vector &offset)
+ { this->offset = offset; }
+
+ /* Returns the position of the upper-left corner of
+ * tile (x, y) in the sector. */
+ Vector get_tile_position(int x, int y) const
+ { return offset + Vector(x,y) * 32; }