/// 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 */
};
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);
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 {
// normal mode
LookaheadMode lookahead_mode;
float changetime;
+ Vector lookahead_pos;
+ Vector peek_pos;
+ Vector cached_translation;
// autoscroll mode
std::auto_ptr<Path> autoscroll_path;