]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/MapState.h
shift walking animation by one frame
[l2e.git] / src / map / MapState.h
index e180d4832b6b3c1aead07b2dd45cffd86896af65..243325c69e5fef58ed8eff91efd03ea9d5ee758a 100644 (file)
@@ -40,15 +40,23 @@ 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);
+       void OnGridLock();
+       void OnMove();
 
 private:
        const Map *map;
        Entity *controlled;
        geometry::Vector<float> tempTarget;
+       geometry::Vector<int> lastLock;
        graphics::Camera camera;
        std::vector<Entity *> entities;
+       float walkingSpeed;
+       int nextDirection;
+       bool afterLock;
 
 };