]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/MapState.h
trigger handling in map state
[l2e.git] / src / map / MapState.h
index 86e2813576e3c4dddcf369c8a7783233add271d6..2b530698ea48211fc5c08ed51e208a47bf45f4ea 100644 (file)
@@ -22,7 +22,7 @@ class MapState
 : public app::State {
 
 public:
-       explicit MapState(const Map *);
+       explicit MapState(Map *);
        virtual ~MapState() { }
 
 public:
@@ -44,15 +44,19 @@ public:
 
 private:
        static bool ZCompare(const Entity *lhs, const Entity *rhs);
+       void OnGridLock();
+       void OnMove();
 
 private:
-       const Map *map;
+       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;
 
 };