X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FFPSController.hpp;fp=src%2Fapp%2FFPSController.hpp;h=a7b11a417eff960fb31a6504e12c592439a48b1f;hb=955fbb45dedb570520fc45d2ce69f420bed2ad08;hp=01c745120d579aa209efc550987be912facc3e10;hpb=32909aa3224ec0ed5656721178eb6ad31cd047df;p=blank.git diff --git a/src/app/FPSController.hpp b/src/app/FPSController.hpp index 01c7451..a7b11a4 100644 --- a/src/app/FPSController.hpp +++ b/src/app/FPSController.hpp @@ -18,6 +18,9 @@ class FPSController { public: explicit FPSController(Entity &) noexcept; + Entity &Controlled() noexcept { return entity; } + const Entity &Controlled() const noexcept { return entity; } + /// get position and face direction of controlled entity Ray Aim() const noexcept { return entity.Aim(entity.ChunkCoords()); }