165{
168 {
169 for (
Corpse* corpse : *corpses)
170 {
171 corpse->AddToWorld();
173 if (corpse->IsWorldObject())
175 else
177
179 }
180 }
181}
CellCoord GetCellCoord() const
Definition: Cell.h:77
uint32 CellX() const
Definition: Cell.h:70
uint32 CellY() const
Definition: Cell.h:71
void AddWorldObject(SPECIFIC_OBJECT *obj)
Definition: Grid.h:57
void AddGridObject(SPECIFIC_OBJECT *obj)
Definition: Grid.h:101
uint32 GetId() const
Definition: GridDefines.h:148
GridType & GetGridType(const uint32 x, const uint32 y)
Definition: NGrid.h:45
std::unordered_set< Corpse * > const * GetCorpsesInCell(uint32 cellId) const
Definition: Map.h:525
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), Cell::CellX(), Cell::CellY(), Cell::GetCellCoord(), Map::GetCorpsesInCell(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), CoordPair< LIMIT >::GetId(), i_cell, i_corpses, i_grid, and i_map.