![]() |
TrinityCore
|
#include <Grid.h>
Public Member Functions | |
| ~Grid () | |
| 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 T > | |
| uint32 | GetWorldObjectCountInGrid () const |
| 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 |
|
inline |
Inserts a container type object into the grid.
Definition at line 111 of file Grid.h.
References ASSERT, and Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_container.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and ObjectWorldLoader::Visit().
|
inline |
an object of interested enters the grid
Definition at line 58 of file Grid.h.
References ASSERT, and Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_objects.
Referenced by Map::AddToGrid(), Map::AddToGrid(), Map::AddToGrid(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), and ObjectWorldLoader::Visit().
|
inline |
Returns the number of object within the grid.
Definition at line 104 of file Grid.h.
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_objects.
|
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.
Definition at line 88 of file Grid.h.
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 |
Definition at line 95 of file Grid.h.
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::i_objects.
|
friend |
|
private |
Removes a containter type object from the grid
Definition at line 137 of file Grid.h.
Referenced by Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), and Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::Visit().
|
private |