X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmap%2FMapState.h;h=b753ccfd61201aa1e2decb13f586c6bda05ef64d;hb=a1c89e41e38eca790e168b8acd3beee974685fcd;hp=cde5ec7449d0d9892164c7333db8ef3324540e7a;hpb=1d6a9f01b8db0f5212b6a02603dd0670c6da38c7;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index cde5ec7..b753ccf 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: @@ -44,14 +44,21 @@ public: private: static bool ZCompare(const Entity *lhs, const Entity *rhs); + void OnGridLock(); + void OnMove(); + + void UpdateFollower(Entity *); private: - const Map *map; + Map *map; Entity *controlled; geometry::Vector tempTarget; + geometry::Vector lastLock; graphics::Camera camera; std::vector entities; float walkingSpeed; + int nextDirection; + bool afterLock; };