[11909] Implement Pathfinder class to handle the actual pathfinding

Authors of this are Faramir118 and qsa.
Also thanks to many others for testing and suggestions!
This commit is contained in:
sixsixnine 2012-01-29 23:22:44 +01:00 committed by Schmoozerd
parent 1c64b0658e
commit d3606fb4ee
10 changed files with 1322 additions and 1 deletions

View file

@ -52,6 +52,7 @@
#include "BattleGroundMgr.h"
#include "TemporarySummon.h"
#include "VMapFactory.h"
#include "MoveMap.h"
#include "GameEventMgr.h"
#include "PoolManager.h"
#include "Database/DatabaseImpl.h"
@ -134,6 +135,7 @@ World::~World()
delete command;
VMAP::VMapFactory::clear();
MMAP::MMapFactory::clear();
//TODO free addSessQueue
}
@ -887,6 +889,11 @@ void World::LoadConfigSettings(bool reload)
sLog.outString( "WORLD: VMap support included. LineOfSight:%i, getHeight:%i, indoorCheck:%i",
enableLOS, enableHeight, getConfig(CONFIG_BOOL_VMAP_INDOOR_CHECK) ? 1 : 0);
sLog.outString( "WORLD: VMap data directory is: %svmaps",m_dataPath.c_str());
setConfig(CONFIG_BOOL_MMAP_ENABLED, "mmap.enabled", true);
std::string ignoreMapIds = sConfig.GetStringDefault("mmap.ignoreMapIds", "");
MMAP::MMapFactory::preventPathfindingOnMaps(ignoreMapIds.c_str());
sLog.outString("WORLD: mmap pathfinding %sabled", getConfig(CONFIG_BOOL_MMAP_ENABLED) ? "en" : "dis");
}
/// Initialize the World
@ -898,6 +905,9 @@ void World::SetInitialWorldSettings()
///- Time server startup
uint32 uStartTime = WorldTimer::getMSTime();
///- Initialize detour memory management
dtAllocSetCustom(dtCustomAlloc, dtCustomFree);
///- Initialize config settings
LoadConfigSettings();