![]() |
AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "MapGridManager.h"
Public Member Functions | |
MapGridManager (Map *map) | |
void | CreateGrid (uint16 const x, uint16 const y) |
bool | LoadGrid (uint16 const x, uint16 const y) |
void | UnloadGrid (uint16 const x, uint16 const y) |
bool | IsGridCreated (uint16 const x, uint16 const y) const |
bool | IsGridLoaded (uint16 const x, uint16 const y) const |
MapGridType * | GetGrid (uint16 const x, uint16 const y) |
uint32 | GetCreatedGridsCount () |
uint32 | GetLoadedGridsCount () |
uint32 | GetCreatedCellsInGridCount (uint16 const x, uint16 const y) |
uint32 | GetCreatedCellsInMapCount () |
bool | IsGridsFullyCreated () const |
bool | IsGridsFullyLoaded () const |
Static Public Member Functions | |
static bool | IsValidGridCoordinates (uint16 const x, uint16 const y) |
Private Attributes | |
Map * | _map |
uint32 | _createdGridsCount |
uint32 | _loadedGridsCount |
std::mutex | _gridLock |
std::unique_ptr< MapGridType > | _mapGrid [MAX_NUMBER_OF_GRIDS][MAX_NUMBER_OF_GRIDS] |
|
inline |
References _createdGridsCount, _gridLock, _map, _mapGrid, IsGridCreated(), and GridTerrainLoader::LoadTerrain().
Referenced by Map::EnsureGridCreated().
References MapGrid< WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetCreatedCellsCount(), and GetGrid().
Referenced by Map::GetCreatedCellsInGridCount().
uint32 MapGridManager::GetCreatedCellsInMapCount | ( | ) |
References GetGrid(), and MAX_NUMBER_OF_GRIDS.
Referenced by Map::GetCreatedCellsInMapCount().
uint32 MapGridManager::GetCreatedGridsCount | ( | ) |
References _createdGridsCount.
Referenced by Map::GetCreatedGridsCount().
MapGridType * MapGridManager::GetGrid | ( | uint16 const | x, |
uint16 const | y | ||
) |
References _mapGrid, and IsValidGridCoordinates().
Referenced by GetCreatedCellsInGridCount(), GetCreatedCellsInMapCount(), Map::GetGridTerrainData(), Map::GetGridTerrainDataSharedPtr(), Map::GetMapGrid(), LoadGrid(), and UnloadGrid().
uint32 MapGridManager::GetLoadedGridsCount | ( | ) |
References _loadedGridsCount.
Referenced by Map::GetLoadedGridsCount().
References _mapGrid, and IsValidGridCoordinates().
Referenced by CreateGrid(), and Map::IsGridCreated().
References _mapGrid, and IsValidGridCoordinates().
Referenced by Map::IsGridLoaded().
bool MapGridManager::IsGridsFullyCreated | ( | ) | const |
References _createdGridsCount, and MAX_NUMBER_OF_GRIDS.
bool MapGridManager::IsGridsFullyLoaded | ( | ) | const |
References _loadedGridsCount, and MAX_NUMBER_OF_GRIDS.
Referenced by Map::LoadGridsInRange().
References MAX_NUMBER_OF_GRIDS.
Referenced by GetGrid(), Map::GetGridTerrainData(), IsGridCreated(), and IsGridLoaded().
References _loadedGridsCount, _map, GetGrid(), MapGrid< WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::IsObjectDataLoaded(), GridObjectLoader::LoadAllCellsInGrid(), and MapGrid< WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::SetObjectDataLoaded().
Referenced by Map::EnsureGridLoaded().
References _map, _mapGrid, GetGrid(), Map::RemoveAllObjectsInRemoveList(), GridTerrainUnloader::UnloadTerrain(), and MapGrid< WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitAllCells().
Referenced by Map::UnloadGrid().
|
private |
Referenced by CreateGrid(), GetCreatedGridsCount(), and IsGridsFullyCreated().
|
private |
Referenced by CreateGrid().
|
private |
Referenced by GetLoadedGridsCount(), IsGridsFullyLoaded(), and LoadGrid().
|
private |
Referenced by CreateGrid(), LoadGrid(), and UnloadGrid().
|
private |
Referenced by CreateGrid(), GetGrid(), IsGridCreated(), IsGridLoaded(), and UnloadGrid().