]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/MapState.h
added temporary map transition implementation
[l2e.git] / src / map / MapState.h
index b753ccfd61201aa1e2decb13f586c6bda05ef64d..ccdb51e7fef0c07477640387a4e828f7dcf182ee 100644 (file)
@@ -42,16 +42,28 @@ public:
 
        void SetWalkingSpeed(float s) { walkingSpeed = s; }
 
+       void Transition(Map *, const geometry::Vector<int> &coordinates);
+
 private:
        static bool ZCompare(const Entity *lhs, const Entity *rhs);
+
+       bool CheckBlocking() const;
+
+       void OnTileLock();
        void OnGridLock();
-       void OnMove();
+       void OnMove(bool);
+
+       void UpdateFollower(Entity &);
+       void StopFollowers(Entity &);
 
-       void UpdateFollower(Entity *);
+       void LockEntities();
+       void CheckMonster();
+       void CheckTrigger();
 
 private:
        Map *map;
        Entity *controlled;
+       app::Timer<float> moveTimer;
        geometry::Vector<float> tempTarget;
        geometry::Vector<int> lastLock;
        graphics::Camera camera;
@@ -59,6 +71,8 @@ private:
        float walkingSpeed;
        int nextDirection;
        bool afterLock;
+       bool skipLock;
+       bool debug;
 
 };