AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "NGrid.h"
Public Types | |
typedef Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > | GridType |
Public Member Functions | |
NGrid (uint32 id, int32 x, int32 y) | |
GridType & | GetGridType (const uint32 x, const uint32 y) |
GridType const & | GetGridType (const uint32 x, const uint32 y) const |
uint32 | GetGridId () const |
int32 | getX () const |
int32 | getY () const |
void | link (GridRefMgr< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > > *pTo) |
bool | isGridObjectDataLoaded () const |
void | setGridObjectDataLoaded (bool pLoaded) |
template<class T , class TT > | |
void | VisitAllGrids (TypeContainerVisitor< T, TypeMapContainer< TT > > &visitor) |
template<class T , class TT > | |
void | VisitGrid (const uint32 x, const uint32 y, TypeContainerVisitor< T, TypeMapContainer< TT > > &visitor) |
Private Attributes | |
uint32 | i_gridId |
GridReference< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > > | i_Reference |
int32 | i_x |
int32 | i_y |
GridType | i_cells [N][N] |
bool | i_GridObjectDataLoaded |
NGrid is nothing more than a wrapper of the Grid with an NxN cells
typedef Grid<ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES> NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GridType |
|
inline |
|
inline |
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_gridId.
Referenced by ObjectGridLoader::LoadN().
|
inline |
References ASSERT, and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_cells.
Referenced by Map::AddToGrid(), Map::SwitchGridContainers(), ObjectWorldLoader::Visit(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitAllGrids(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitGrid().
|
inline |
|
inline |
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_x.
Referenced by Map::UnloadGrid().
|
inline |
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_y.
Referenced by Map::UnloadGrid().
|
inline |
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridObjectDataLoaded.
Referenced by Map::AddToGrid(), and Map::isGridObjectDataLoaded().
|
inline |
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_Reference, and Reference< TO, FROM >::link().
Referenced by Map::buildNGridLinkage().
|
inline |
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridObjectDataLoaded.
Referenced by Map::setGridObjectDataLoaded().
|
inline |
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), and Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::Visit().
Referenced by Map::UnloadGrid().
|
inline |
|
private |