X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.h;h=86e2813576e3c4dddcf369c8a7783233add271d6;hb=817aaf3ab0a935280f7366bccf963cb911d2fa31;hp=e180d4832b6b3c1aead07b2dd45cffd86896af65;hpb=a550d5e73bef77a8bb98a31034dcaad83a43677a;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index e180d48..86e2813 100644 --- a/src/map/MapState.h +++ b/src/map/MapState.h @@ -40,6 +40,8 @@ public: void AddEntity(Entity *e) { entities.push_back(e); } void ControlEntity(Entity *e) { controlled = e; camera.SetTarget(&e->Position()); } + void SetWalkingSpeed(float s) { walkingSpeed = s; } + private: static bool ZCompare(const Entity *lhs, const Entity *rhs); @@ -49,6 +51,8 @@ private: geometry::Vector tempTarget; graphics::Camera camera; std::vector entities; + float walkingSpeed; + int nextDirection; };