movement for narrow room

This commit is contained in:
Yunfan Li
2023-09-05 15:11:40 +08:00
parent 560ec3cc9f
commit d053ac6850
2 changed files with 35 additions and 18 deletions

View File

@@ -40,6 +40,8 @@ class MovementAction : public Action
bool MoveAway(Unit* target);
bool MoveInside(uint32 mapId, float x, float y, float z, float distance = sPlayerbotAIConfig->followDistance);
void CreateWp(Player* wpOwner, float x, float y, float z, float o, uint32 entry, bool important = false);
private:
float SearchBestGroundZForPath(float x, float y, float z, float range = 10.0f);
};
class FleeAction : public MovementAction