Core/Movement: added some overloads to PathGenerator::CalculatePath
This commit is contained in:
1 parent
a9751de67c
commit
ff3beb0e92
2 files changed
+14
No files matched your search
@@ -23,6 +23,7 @@
|
||||
#include "MMapFactory.h"
|
||||
#include "MMapManager.h"
|
||||
#include "Log.h"
|
||||
#include "Position.h"
|
||||
#include "DisableMgr.h"
|
||||
#include "DetourCommon.h"
|
||||
#include "DetourNavMeshQuery.h"
|
||||
@@ -61,6 +62,16 @@ bool PathGenerator::CalculatePath(float destX, float destY, float destZ, bool fo
|
||||
return CalculatePath(PositionToVector3(_source->GetPosition()), G3D::Vector3(destX, destY, destZ), forceDest);
|
||||
}
|
||||
|
||||
bool PathGenerator::CalculatePath(Position const& destination, bool forceDest /*= false*/)
|
||||
{
|
||||
return CalculatePath(PositionToVector3(_source->GetPosition()), PositionToVector3(destination), forceDest);
|
||||
}
|
||||
|
||||
bool PathGenerator::CalculatePath(Position const& startPosition, Position const& destination, bool forceDest /*= false*/)
|
||||
{
|
||||
return CalculatePath(PositionToVector3(startPosition), PositionToVector3(destination), forceDest);
|
||||
}
|
||||
|
||||
bool PathGenerator::CalculatePath(G3D::Vector3 const& startPoint, G3D::Vector3 const& endPoint, bool forceDest /*= false*/)
|
||||
{
|
||||
if (!Trinity::IsValidMapCoord(startPoint.x, startPoint.y, startPoint.z) || !Trinity::IsValidMapCoord(endPoint.x, endPoint.y, endPoint.z))
|
||||
|
||||
Reference in new issue
Block a user