X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.h;h=e7a75b6fca784f5dfb04c9a2b64154938a36dfbf;hb=d7befe3a14be8f01d6d7288a6970358a4749368d;hp=cde5ec7449d0d9892164c7333db8ef3324540e7a;hpb=1d6a9f01b8db0f5212b6a02603dd0670c6da38c7;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index cde5ec7..e7a75b6 100644 --- a/src/map/MapState.h +++ b/src/map/MapState.h @@ -22,7 +22,7 @@ class MapState : public app::State { public: - explicit MapState(const Map *); + explicit MapState(Map *); virtual ~MapState() { } public: @@ -45,13 +45,30 @@ public: private: static bool ZCompare(const Entity *lhs, const Entity *rhs); + bool CheckBlocking() const; + + void OnTileLock(); + void OnGridLock(); + void OnMove(bool); + + void UpdateFollower(Entity &); + void StopFollowers(Entity &); + + void LockEntities(); + void CheckMonster(); + void CheckTrigger(); + private: - const Map *map; + Map *map; Entity *controlled; + app::Timer moveTimer; geometry::Vector tempTarget; + geometry::Vector lastLock; graphics::Camera camera; std::vector entities; float walkingSpeed; + int nextDirection; + bool afterLock; };