]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/MapState.h
added entity orientation awareness
[l2e.git] / src / map / MapState.h
index e180d4832b6b3c1aead07b2dd45cffd86896af65..cde5ec7449d0d9892164c7333db8ef3324540e7a 100644 (file)
@@ -40,6 +40,8 @@ public:
        void AddEntity(Entity *e) { entities.push_back(e); }
        void ControlEntity(Entity *e) { controlled = e; camera.SetTarget(&e->Position()); }
 
+       void SetWalkingSpeed(float s) { walkingSpeed = s; }
+
 private:
        static bool ZCompare(const Entity *lhs, const Entity *rhs);
 
@@ -49,6 +51,7 @@ private:
        geometry::Vector<float> tempTarget;
        graphics::Camera camera;
        std::vector<Entity *> entities;
+       float walkingSpeed;
 
 };