]> git.localhorst.tv Git - blank.git/blobdiff - src/world/Entity.hpp
move steering behaviours into entity
[blank.git] / src / world / Entity.hpp
index 0117fa9cb0d0801deb53750c54b0b93c2d236cc1..36f686848e6542353e3c47d20e94fdb9af58902e 100644 (file)
@@ -4,6 +4,7 @@
 #include "Chunk.hpp"
 #include "EntityDerivative.hpp"
 #include "EntityState.hpp"
+#include "Steering.hpp"
 #include "../geometry/primitive.hpp"
 #include "../model/Instance.hpp"
 
@@ -32,6 +33,9 @@ public:
        Entity(const Entity &) noexcept;
        Entity &operator =(const Entity &) = delete;
 
+       Steering &GetSteering() noexcept { return steering; }
+       const Steering &GetSteering() const noexcept { return steering; }
+
        bool HasController() const noexcept { return ctrl; }
        // entity takes over ownership of controller
        void SetController(EntityController *c) noexcept;
@@ -142,6 +146,7 @@ private:
 
 
 private:
+       Steering steering;
        EntityController *ctrl;
        Instance model;