From 2dd2f42ff1c683331e7192b4bfb832e41543d2df Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sun, 23 Oct 2016 18:05:12 -0500 Subject: scriptable tags, inv. system --- src/player.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/player.cpp') diff --git a/src/player.cpp b/src/player.cpp index 82de470..bc4ae76 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -142,3 +142,9 @@ void PlayerSystem::receive(const KeyDownEvent &kde) game::time::tick(50); } } + +vec2 PlayerSystem::getPosition(void) const +{ + auto loc = *game::entities.get(pid).component().get(); + return vec2 {loc.x, loc.y}; +} -- cgit v1.2.3