20 lines
438 B
C++
20 lines
438 B
C++
|
#include "precompiled.h"
|
||
|
#include "TRAStarEngine.h"
|
||
|
|
||
|
CTRAStarEngine::CTRAStarEngine(void)
|
||
|
{
|
||
|
|
||
|
mGoal = new AStarGoalLowLevel;
|
||
|
}
|
||
|
|
||
|
CTRAStarEngine::~CTRAStarEngine(void)
|
||
|
{
|
||
|
delete mGoal;
|
||
|
}
|
||
|
|
||
|
bool CTRAStarEngine::FindPath(const CVector2D &src, const CVector2D &dest, HEntity entity, SeDcdt& dcdtPathfinder, float radius )
|
||
|
{
|
||
|
bool found = dcdtPathfinder.SearchPathFast(src.x, src.y, dest.x, dest.y, radius);
|
||
|
return found;
|
||
|
}
|