X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.h;h=cde5ec7449d0d9892164c7333db8ef3324540e7a;hb=1d6a9f01b8db0f5212b6a02603dd0670c6da38c7;hp=e180d4832b6b3c1aead07b2dd45cffd86896af65;hpb=657eed00ae73b8d06470cec0d955aeada537a90d;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index e180d48..cde5ec7 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,7 @@ private: geometry::Vector tempTarget; graphics::Camera camera; std::vector entities; + float walkingSpeed; };