AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Grid.h"
Public Member Functions | |
~Grid ()=default | |
template<class SPECIFIC_OBJECT > | |
void | AddWorldObject (SPECIFIC_OBJECT *obj) |
template<class T > | |
void | Visit (TypeContainerVisitor< T, TypeMapContainer< GRID_OBJECT_TYPES > > &visitor) |
template<class T > | |
void | Visit (TypeContainerVisitor< T, TypeMapContainer< WORLD_OBJECT_TYPES > > &visitor) |
template<class SPECIFIC_OBJECT > | |
void | AddGridObject (SPECIFIC_OBJECT *obj) |
Private Attributes | |
TypeMapContainer< GRID_OBJECT_TYPES > | i_container |
TypeMapContainer< WORLD_OBJECT_TYPES > | i_objects |
Friends | |
template<class A , class T , class O > | |
class | GridLoader |
|
default |
destructor to clean up its resources. This includes unloading the grid if it has not been unload.
|
inline |
Inserts a container type object into the grid.
References ASSERT, and Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_container.
Referenced by Map::AddToGrid(), Map::SwitchGridContainers(), and ObjectWorldLoader::Visit().
|
inline |
an object of interested enters the grid
References ASSERT, and Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_objects.
Referenced by Map::AddToGrid(), Map::SwitchGridContainers(), and ObjectWorldLoader::Visit().
|
inline |
an object of interested exits the grid Refreshes/update the grid. This required for remote grids. Locks a grid. Any object enters must wait until the grid is unlock. Unlocks the grid.
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_container.
Referenced by NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitAllGrids(), and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitGrid().
|
inline |
|
friend |
|
private |
Removes a containter type object from the grid
Referenced by Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), and Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::Visit().
|
private |