1
0
forked from 0ad/0ad
0ad/source/simulation/TRAStarEngine.cpp
2008-07-17 17:00:00 +00:00

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;
}