mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 13:23:56 -07:00
19 lines
438 B
C++
19 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;
|
|
}
|