X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FEntity.hpp;fp=src%2Fworld%2FEntity.hpp;h=36f686848e6542353e3c47d20e94fdb9af58902e;hb=6a3227ca747d0598711f7354cd39897184e9fe6a;hp=0117fa9cb0d0801deb53750c54b0b93c2d236cc1;hpb=dc9e991ce52da5d89722e1b5f3862988afaa41cc;p=blank.git diff --git a/src/world/Entity.hpp b/src/world/Entity.hpp index 0117fa9..36f6868 100644 --- a/src/world/Entity.hpp +++ b/src/world/Entity.hpp @@ -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;