#303: Typo fixes from mathnerd314
[supertux.git] / src / object / camera.hpp
index d5ca2d0..061fe4d 100644 (file)
@@ -50,7 +50,7 @@ public:
   /// write camera mode to a lisp file
   virtual void write(lisp::Writer& writer);
 
-  /// reset camera postion
+  /// reset camera position
   void reset(const Vector& tuxpos);
 
   /** return camera position */
@@ -86,6 +86,11 @@ public:
   };
   CameraMode mode;
 
+  /**
+   * get the coordinates of the point directly in the center of this camera
+   */
+  Vector get_center() const;
+
 private:
   void update_scroll_normal(float elapsed_time);
   void update_scroll_autoscroll(float elapsed_time);
@@ -94,7 +99,7 @@ private:
   void shake();
 
   /**
-   * The camera basically provides lookeahead on the left or right side
+   * The camera basically provides lookahead on the left or right side
    * or is undecided.
    */
   enum LookaheadMode {
@@ -108,7 +113,9 @@ private:
   // normal mode
   LookaheadMode lookahead_mode;
   float changetime;
-  float lookahead_pos;
+  Vector lookahead_pos;
+  Vector peek_pos;
+  Vector cached_translation;
 
   // autoscroll mode
   std::auto_ptr<Path> autoscroll_path;