![]() |
TrinityCore
|
#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, time_t expiry, bool unload=true) | |
| GridType & | GetGridType (const uint32 x, const uint32 y) |
| GridType const & | GetGridType (const uint32 x, const uint32 y) const |
| uint32 | GetGridId (void) const |
| grid_state_t | GetGridState (void) const |
| void | SetGridState (grid_state_t s) |
| int32 | getX () const |
| int32 | getY () const |
| void | link (GridRefManager< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > > *pTo) |
| bool | isGridObjectDataLoaded () const |
| void | setGridObjectDataLoaded (bool pLoaded) |
| GridInfo * | getGridInfoRef () |
| TimeTracker const & | getTimeTracker () const |
| bool | getUnloadLock () const |
| void | setUnloadExplicitLock (bool on) |
| void | setUnloadReferenceLock (bool on) |
| void | incUnloadActiveLock () |
| void | decUnloadActiveLock () |
| void | ResetTimeTracker (time_t interval) |
| void | UpdateTimeTracker (time_t diff) |
| 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) |
| template<class T > | |
| uint32 | GetWorldObjectCountInNGrid () const |
Private Attributes | |
| uint32 | i_gridId |
| GridInfo | i_GridInfo |
| GridReference< NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES > > | i_Reference |
| int32 | i_x |
| int32 | i_y |
| grid_state_t | i_cellstate |
| GridType | i_cells [N][N] |
| bool | i_GridObjectDataLoaded |
| typedef Grid<ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES> NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GridType |
|
inline |
Definition at line 112 of file NGrid.h.
References GridInfo::decUnloadActiveLock(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo.
Referenced by Map::RemoveFromActive().
|
inline |
Definition at line 93 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_gridId.
Referenced by ObjectGridLoader::LoadN().
|
inline |
Definition at line 106 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo.
Referenced by Map::ProcessRelocationNotifies().
|
inline |
Definition at line 94 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_cellstate.
Referenced by Map::DelayedUpdate(), Map::EnsureGridLoadedForActiveObject(), and Map::ProcessRelocationNotifies().
|
inline |
Definition at line 81 of file NGrid.h.
References ASSERT, and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_cells.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::SwitchGridContainers(), 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 |
Definition at line 87 of file NGrid.h.
References ASSERT, and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_cells.
|
inline |
Definition at line 107 of file NGrid.h.
References GridInfo::getTimeTracker(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo.
|
inline |
Definition at line 108 of file NGrid.h.
References GridInfo::getUnloadLock(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo.
|
inline |
Definition at line 168 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_cells.
Referenced by Map::UnloadGrid(), and ActiveState::Update().
|
inline |
Definition at line 96 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_x.
Referenced by Map::ActiveObjectsNearGrid(), Map::ProcessRelocationNotifies(), Map::UnloadGrid(), ActiveState::Update(), IdleState::Update(), and RemovalState::Update().
|
inline |
Definition at line 97 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_y.
Referenced by Map::ActiveObjectsNearGrid(), Map::ProcessRelocationNotifies(), Map::UnloadGrid(), ActiveState::Update(), IdleState::Update(), and RemovalState::Update().
|
inline |
Definition at line 111 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo, and GridInfo::incUnloadActiveLock().
Referenced by Map::AddToActive().
|
inline |
Definition at line 103 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridObjectDataLoaded.
Referenced by Map::AddToGrid(), Map::EnsureGridLoaded(), Map::IsGridLoaded(), and Map::Visit().
|
inline |
Definition at line 99 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_Reference, and Reference< TO, FROM >::link().
Referenced by Map::buildNGridLinkage().
|
inline |
Definition at line 113 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo, and GridInfo::ResetTimeTracker().
Referenced by Map::ResetGridExpiry().
|
inline |
Definition at line 104 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridObjectDataLoaded.
Referenced by Map::EnsureGridLoaded().
|
inline |
Definition at line 95 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_cellstate.
Referenced by Map::EnsureGridCreated_i(), Map::EnsureGridLoadedForActiveObject(), ActiveState::Update(), and IdleState::Update().
|
inline |
Definition at line 109 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo, and GridInfo::setUnloadExplicitLock().
Referenced by Map::GridMarkNoUnload(), and Map::GridUnmarkNoUnload().
|
inline |
Definition at line 110 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo, and GridInfo::setUnloadReferenceLock().
|
inline |
Definition at line 114 of file NGrid.h.
References NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_GridInfo, and GridInfo::UpdateTimeTracker().
|
inline |
Definition at line 140 of file NGrid.h.
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(), and ActiveState::Update().
|
inline |
Definition at line 149 of file NGrid.h.
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 ObjectGridLoader::LoadN(), and Map::Visit().
|
private |
Definition at line 184 of file NGrid.h.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetWorldObjectCountInNGrid().
|
private |
Definition at line 183 of file NGrid.h.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridState(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::SetGridState().
|
private |
Definition at line 178 of file NGrid.h.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridId().
|
private |
Definition at line 179 of file NGrid.h.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::decUnloadActiveLock(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getGridInfoRef(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getTimeTracker(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getUnloadLock(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::incUnloadActiveLock(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::ResetTimeTracker(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setUnloadExplicitLock(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setUnloadReferenceLock(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::UpdateTimeTracker().
|
private |
Definition at line 185 of file NGrid.h.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::isGridObjectDataLoaded(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::setGridObjectDataLoaded().
|
private |
Definition at line 180 of file NGrid.h.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::link().
|
private |
Definition at line 181 of file NGrid.h.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getX().
|
private |
Definition at line 182 of file NGrid.h.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::getY().