X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.h;h=4ba149db1d96c3e05749c4a5b32f411b5938dfc5;hb=07cdc452aeaad73ca9f8f9a3cf9868d2b6c9d5b3;hp=b753ccfd61201aa1e2decb13f586c6bda05ef64d;hpb=a1c89e41e38eca790e168b8acd3beee974685fcd;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index b753ccf..4ba149d 100644 --- a/src/map/MapState.h +++ b/src/map/MapState.h @@ -44,14 +44,24 @@ public: 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 moveTimer; geometry::Vector tempTarget; geometry::Vector lastLock; graphics::Camera camera; @@ -59,6 +69,7 @@ private: float walkingSpeed; int nextDirection; bool afterLock; + bool debug; };