X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.h;h=dc352f69522636e5f2248076f6cddb59bea2a804;hb=389d2fcb1e9ca1023cda11da80f00272ab20903a;hp=2b530698ea48211fc5c08ed51e208a47bf45f4ea;hpb=c055b357c50dd871b49c38191a9d867ff42ea420;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index 2b53069..dc352f6 100644 --- a/src/map/MapState.h +++ b/src/map/MapState.h @@ -42,14 +42,32 @@ public: void SetWalkingSpeed(float s) { walkingSpeed = s; } + void Transition(Map *, const geometry::Vector &coordinates); + private: static bool ZCompare(const Entity *lhs, const Entity *rhs); + + void UnloadMap(); + void LoadMap(Map *); + + bool CheckBlocking() const; + + void OnTileLock(); void OnGridLock(); - void OnMove(); + void OnMove(bool); + + void UpdateFollower(Entity &); + void StopFollowers(Entity &); + + void LockEntities(); + void CheckMonster(); + void CheckTrigger(); private: + app::Application *ctrl; Map *map; Entity *controlled; + app::Timer moveTimer; geometry::Vector tempTarget; geometry::Vector lastLock; graphics::Camera camera; @@ -57,6 +75,8 @@ private: float walkingSpeed; int nextDirection; bool afterLock; + bool skipLock; + bool debug; };