![]() |
TrinityCore
|
#include <ObjectGridLoader.h>
Public Member Functions | |
| ObjectGridLoader (NGridType &grid, Map *map, Cell const &cell) | |
| void | Visit (GameObjectMapType &m) |
| void | Visit (CreatureMapType &m) |
| void | Visit (CorpseMapType &) const |
| void | Visit (DynamicObjectMapType &) const |
| void | LoadN (void) |
Static Public Member Functions | |
| static void | SetObjectCell (MapObject *obj, CellCoord const &cellCoord) |
Private Attributes | |
| Cell | i_cell |
| NGridType & | i_grid |
| Map * | i_map |
| uint32 | i_gameObjects |
| uint32 | i_creatures |
| uint32 | i_corpses |
Friends | |
| class | ObjectWorldLoader |
Definition at line 30 of file ObjectGridLoader.h.
Definition at line 35 of file ObjectGridLoader.h.
| void ObjectGridLoader::LoadN | ( | void | ) |
Definition at line 154 of file ObjectGridLoader.cpp.
References Cell::cell_x, Cell::cell_y, Cell::data, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridId(), Map::GetId(), i_cell, i_corpses, i_creatures, i_gameObjects, i_grid, i_map, MAX_NUMBER_OF_CELLS, Cell::Part, TC_LOG_DEBUG, and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitGrid().
Referenced by Map::EnsureGridLoaded().
Definition at line 82 of file ObjectGridLoader.cpp.
References MapObject::SetCurrentCell().
Referenced by AddObjectHelper().
|
inline |
Definition at line 41 of file ObjectGridLoader.h.
| void ObjectGridLoader::Visit | ( | CreatureMapType & | m | ) |
Definition at line 128 of file ObjectGridLoader.cpp.
References Cell::GetCellCoord(), CoordPair< LIMIT >::GetId(), Map::GetId(), Map::GetSpawnMode(), i_cell, i_creatures, i_map, LoadHelper(), and sObjectMgr.
|
inline |
Definition at line 42 of file ObjectGridLoader.h.
| void ObjectGridLoader::Visit | ( | GameObjectMapType & | m | ) |
Definition at line 121 of file ObjectGridLoader.cpp.
References Cell::GetCellCoord(), CoordPair< LIMIT >::GetId(), Map::GetId(), Map::GetSpawnMode(), i_cell, i_gameObjects, i_map, LoadHelper(), and sObjectMgr.
|
friend |
Definition at line 32 of file ObjectGridLoader.h.
|
private |
Definition at line 49 of file ObjectGridLoader.h.
|
private |
Definition at line 54 of file ObjectGridLoader.h.
Referenced by LoadN().
|
private |
Definition at line 53 of file ObjectGridLoader.h.
|
private |
Definition at line 52 of file ObjectGridLoader.h.
|
private |
Definition at line 50 of file ObjectGridLoader.h.
Referenced by LoadN().
|
private |
Definition at line 51 of file ObjectGridLoader.h.