summaryrefslogtreecommitdiffstats
path: root/src/control/MapContext.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-23 20:58:49 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-23 20:58:49 +0200
commit24ae84861379f2f878804b53a457153ad1ad6c1e (patch)
tree02cdc5ba3aec624cb558b74f5a220375a51cc15a /src/control/MapContext.hpp
parent8f964bb27dcac5d0620e0dfab211a4bc51cbd707 (diff)
downloadrpgedit-24ae84861379f2f878804b53a457153ad1ad6c1e.tar
rpgedit-24ae84861379f2f878804b53a457153ad1ad6c1e.zip
Rewrite main loop
Diffstat (limited to 'src/control/MapContext.hpp')
-rw-r--r--src/control/MapContext.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/control/MapContext.hpp b/src/control/MapContext.hpp
index 504afc2..26f7e34 100644
--- a/src/control/MapContext.hpp
+++ b/src/control/MapContext.hpp
@@ -55,6 +55,10 @@ public:
void advance(InputHandler *inputHandler, unsigned ticks);
+ Model::Position getViewPosition() {
+ return map->getPlayerEntity().getPosition();
+ }
+
std::shared_ptr<View::MapView> initView(const std::shared_ptr<View::Window> &window) {
return std::make_shared<View::MapView>(window, map, tiles, entities);
}