X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.h;h=34ebdd2f15fc7dd9076392aec6357fa16ea0dacc;hb=d969efe468d2d9775ab2c5388be1cde8efa0b9ad;hp=86e2813576e3c4dddcf369c8a7783233add271d6;hpb=34fefc504fc465080b210b604ba5a185265a3c94;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index 86e2813..34ebdd2 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,15 +44,23 @@ public: private: static bool ZCompare(const Entity *lhs, const Entity *rhs); + void OnTileLock(); + void OnGridLock(); + void OnMove(); + + void UpdateFollower(Entity *); 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; };