◆ SlaveRunEvent()
SlaveRunEvent::SlaveRunEvent |
( |
Creature & |
owner | ) |
|
|
inline |
Creature & _owner
Definition pit_of_saron.cpp:1363
◆ Execute()
Reimplemented from BasicEvent.
1345 {
1348 for (
uint32 i = 1; i < 4; ++i)
1349 {
1351 if (dist < minDist)
1352 {
1353 minDist = dist;
1354 pointId = i;
1355 }
1356 }
1357 if (minDist < 200.0f * 200.0f)
1359 return true;
1360 }
std::uint32_t uint32
Definition Define.h:107
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition MotionMaster.h:213
MotionMaster * GetMotionMaster()
Definition Unit.h:1673
const Position slaveFreePos[4]
Definition pit_of_saron.cpp:1331
float GetExactDist2dSq(const float x, const float y) const
Definition Position.h:161
References _owner, Position::GetExactDist2dSq(), Unit::GetMotionMaster(), MotionMaster::MovePoint(), and slaveFreePos.
◆ _owner
The documentation for this class was generated from the following file:
- azerothcore-wotlk/src/server/scripts/Northrend/FrozenHalls/PitOfSaron/pit_of_saron.cpp