X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.h;h=dc352f69522636e5f2248076f6cddb59bea2a804;hb=e02068d51f5e7f82d4d3195e9a9ce5c9d76f727d;hp=34ebdd2f15fc7dd9076392aec6357fa16ea0dacc;hpb=d969efe468d2d9775ab2c5388be1cde8efa0b9ad;p=l2e.git diff --git a/src/map/MapState.h b/src/map/MapState.h index 34ebdd2..dc352f6 100644 --- a/src/map/MapState.h +++ b/src/map/MapState.h @@ -42,15 +42,29 @@ 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 UpdateFollower(Entity *); + void LockEntities(); + void CheckMonster(); + void CheckTrigger(); private: + app::Application *ctrl; Map *map; Entity *controlled; app::Timer moveTimer; @@ -61,6 +75,8 @@ private: float walkingSpeed; int nextDirection; bool afterLock; + bool skipLock; + bool debug; };