forked from 0ad/0ad
20 lines
446 B
C++
20 lines
446 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 UNUSED(entity), SeDcdt& dcdtPathfinder, float radius )
|
|
{
|
|
bool found = dcdtPathfinder.SearchPathFast(src.x, src.y, dest.x, dest.y, radius);
|
|
return found;
|
|
}
|