summaryrefslogtreecommitdiff
path: root/src/engine.h
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-12-31 16:14:27 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-12-31 16:14:27 +0000
commit5f04c73af0dbc456fb24047ab11845d751bc5b16 (patch)
treee473b7b7729e36c484b9146e9804bd5623fdcba7 /src/engine.h
parenteae0c3171fd94970105d4cbd987c8e1218481985 (diff)
downloadmana-client-5f04c73af0dbc456fb24047ab11845d751bc5b16.tar.gz
mana-client-5f04c73af0dbc456fb24047ab11845d751bc5b16.tar.bz2
mana-client-5f04c73af0dbc456fb24047ab11845d751bc5b16.tar.xz
mana-client-5f04c73af0dbc456fb24047ab11845d751bc5b16.zip
Added config options to set the scroll center. Retained scroll offset during map change for smoother map transitions.
Diffstat (limited to 'src/engine.h')
-rw-r--r--src/engine.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine.h b/src/engine.h
index 4575051e..06fa2e01 100644
--- a/src/engine.h
+++ b/src/engine.h
@@ -57,6 +57,11 @@ class Engine
void changeMap(const std::string &mapName);
/**
+ * Changes viewpoint by relative pixel coordinates.
+ */
+ void scrollBy(float scrollX, float scrollY);
+
+ /**
* Performs engine logic.
*/
void logic();