Ulduar base files

Base files for ulduar. w/o any script
This commit is contained in:
Garashan
2024-03-11 13:07:41 +01:00
parent 879f9113da
commit 5ab57efd29
12 changed files with 250 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#include "ObjectGuid.h"
#include "PlayerbotAIConfig.h"
#include "Playerbots.h"
#include "RaidUlduarActions.h"
#include "RaidUlduarStrategy.h"
#include "ScriptedCreature.h"
#include "SharedDefines.h"
#include "RaidUlduarBossHelper.h"
uint32 RotateAroundTheCenterPointAction::FindNearestWaypoint()
{
float minDistance = 0;
int ret = -1;
for (int i = 0; i < intervals; i++) {
float w_x = waypoints[i].first, w_y = waypoints[i].second;
float dis = bot->GetDistance2d(w_x, w_y);
if (ret == -1 || dis < minDistance) {
ret = i;
minDistance = dis;
}
}
return ret;
}