From 5f04c73af0dbc456fb24047ab11845d751bc5b16 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Mon, 31 Dec 2007 16:14:27 +0000 Subject: Added config options to set the scroll center. Retained scroll offset during map change for smoother map transitions. --- src/engine.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/engine.h') diff --git a/src/engine.h b/src/engine.h index 4575051e..06fa2e01 100644 --- a/src/engine.h +++ b/src/engine.h @@ -56,6 +56,11 @@ class Engine */ void changeMap(const std::string &mapName); + /** + * Changes viewpoint by relative pixel coordinates. + */ + void scrollBy(float scrollX, float scrollY); + /** * Performs engine logic. */ -- cgit v1.2.3-60-g2f50