2004-06-03 20:38:14 +02:00
|
|
|
#include "precompiled.h"
|
|
|
|
|
2004-05-29 05:32:33 +02:00
|
|
|
#include "PathfindEngine.h"
|
|
|
|
#include "PathfindSparse.h"
|
2004-07-23 12:56:52 +02:00
|
|
|
#include "ConfigDB.h"
|
|
|
|
|
|
|
|
CPathfindEngine::CPathfindEngine()
|
|
|
|
{
|
2004-10-23 16:39:28 +02:00
|
|
|
CConfigValue* sparseDepth = g_ConfigDB.GetValue( CFG_USER, "pathfind.sparse.recursiondepth" );
|
2004-07-23 12:56:52 +02:00
|
|
|
if( sparseDepth )
|
|
|
|
sparseDepth->GetInt( SPF_RECURSION_DEPTH );
|
|
|
|
}
|
2004-05-29 05:32:33 +02:00
|
|
|
|
|
|
|
void CPathfindEngine::requestPath( HEntity entity, const CVector2D& destination )
|
|
|
|
{
|
|
|
|
pathSparse( entity, destination );
|
2004-06-02 18:11:32 +02:00
|
|
|
}
|