]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/PlayerController.hpp
try to cleanly destruct world
[blank.git] / src / ui / PlayerController.hpp
index 22454133bd3c6971bec4f7ff9f3d65786653df13..9cf0bca465eb3550af7c009dfd4049f73b1c2679 100644 (file)
@@ -18,6 +18,7 @@ class PlayerController
 
 public:
        PlayerController(World &, Player &);
+       ~PlayerController();
 
        World &GetWorld() noexcept { return world; }
        const World &GetWorld() const noexcept { return world; }
@@ -34,7 +35,7 @@ public:
        void SetMovement(const glm::vec3 &) noexcept;
        const glm::vec3 &GetMovement() const noexcept { return move_dir; }
 
-       glm::vec3 ControlForce(const EntityState &) const override;
+       glm::vec3 ControlForce(const Entity &, const EntityState &) const override;
 
        /// turn the controlled entity's head by given pitch and yaw deltas
        void TurnHead(float pitch, float yaw) noexcept;