diff options
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<Position>().get(); + return vec2 {loc.x, loc.y}; +} |