AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "ObjectGridLoader.h"
#include "CellImpl.h"
#include "Corpse.h"
#include "Creature.h"
#include "DynamicObject.h"
#include "GameObject.h"
#include "GridNotifiers.h"
#include "ObjectMgr.h"
#include "Transport.h"
#include "Vehicle.h"
Go to the source code of this file.
Classes | |
class | ObjectWorldLoader |
Functions | |
template<class T > | |
void | AddObjectHelper (CellCoord &cell, GridRefMgr< T > &m, uint32 &count, Map *, T *obj) |
template<> | |
void | AddObjectHelper (CellCoord &cell, CreatureMapType &m, uint32 &count, Map *map, Creature *obj) |
template<> | |
void | AddObjectHelper (CellCoord &cell, GameObjectMapType &m, uint32 &count, Map *map, GameObject *obj) |
template<class T > | |
void | LoadHelper (CellGuidSet const &, CellCoord &, GridRefMgr< T > &, uint32 &, Map *) |
template<> | |
void | LoadHelper (CellGuidSet const &guid_set, CellCoord &cell, GridRefMgr< Creature > &m, uint32 &count, Map *map) |
template<> | |
void | LoadHelper (CellGuidSet const &guid_set, CellCoord &cell, GridRefMgr< GameObject > &m, uint32 &count, Map *map) |
void AddObjectHelper | ( | CellCoord & | cell, |
CreatureMapType & | m, | ||
uint32 & | count, | ||
Map * | map, | ||
Creature * | obj | ||
) |
References Map::AddToActive(), GridObject< T >::AddToGrid(), Creature::AddToWorld(), WorldObject::isActiveObject(), and ObjectGridLoader::SetObjectCell().
void AddObjectHelper | ( | CellCoord & | cell, |
GameObjectMapType & | m, | ||
uint32 & | count, | ||
Map * | map, | ||
GameObject * | obj | ||
) |
References Map::AddToActive(), GridObject< T >::AddToGrid(), GameObject::AddToWorld(), WorldObject::isActiveObject(), and ObjectGridLoader::SetObjectCell().
void AddObjectHelper | ( | CellCoord & | cell, |
GridRefMgr< T > & | m, | ||
uint32 & | count, | ||
Map * | , | ||
T * | obj | ||
) |
References ObjectGridLoader::SetObjectCell().
Referenced by LoadHelper().
void LoadHelper | ( | CellGuidSet const & | , |
CellCoord & | , | ||
GridRefMgr< T > & | , | ||
uint32 & | , | ||
Map * | |||
) |
Referenced by ObjectGridLoader::Visit().
void LoadHelper | ( | CellGuidSet const & | guid_set, |
CellCoord & | cell, | ||
GridRefMgr< Creature > & | m, | ||
uint32 & | count, | ||
Map * | map | ||
) |
References AddObjectHelper(), Creature::GetDefaultMovementType(), Creature::HasReactState(), Unit::HasUnitState(), IDLE_MOTION_TYPE, Unit::IsAlive(), Unit::IsImmuneToNPC(), Creature::IsMoveInLineOfSightDisabled(), WorldObject::isNeedNotify(), Creature::LoadFromDB(), NOTIFY_AI_RELOCATION, NOTIFY_VISIBILITY_CHANGED, REACT_AGGRESSIVE, UNIT_STATE_SIGHTLESS, and Cell::VisitGridObjects().
void LoadHelper | ( | CellGuidSet const & | guid_set, |
CellCoord & | cell, | ||
GridRefMgr< GameObject > & | m, | ||
uint32 & | count, | ||
Map * | map | ||
) |
References AddObjectHelper(), GameObjectData::id, GameObject::LoadFromDB(), and sObjectMgr.