X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.h;h=0e49100e3b305b6e458123af8060986fd4b76958;hb=80ece5086729d503658ee7f0739a2aad2d5e22e7;hp=b753ccfd61201aa1e2decb13f586c6bda05ef64d;hpb=a1c89e41e38eca790e168b8acd3beee974685fcd;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index b753ccf..0e49100 100644 --- a/src/map/MapState.h +++ b/src/map/MapState.h @@ -42,16 +42,31 @@ public: void SetWalkingSpeed(float s) { walkingSpeed = s; } + void Transition(Map *, const geometry::Vector &coordinates); + private: static bool ZCompare(const Entity *lhs, const Entity *rhs); + + void UnloadMap(); + void LoadMap(Map *); + + 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 moveTimer; geometry::Vector tempTarget; geometry::Vector lastLock; graphics::Camera camera; @@ -59,6 +74,8 @@ private: float walkingSpeed; int nextDirection; bool afterLock; + bool skipLock; + bool debug; };