![]() |
TrinityCore
|
#include <Grid.h>
Public Member Functions | |
| ~Grid () | |
| template<class SPECIFIC_OBJECT > | |
| void | AddWorldObject (SPECIFIC_OBJECT *obj) |
| template<class T > | |
| void | Visit (TypeContainerVisitor< T, GRID_OBJECT_CONTAINER > &visitor) |
| template<class T > | |
| void | Visit (TypeContainerVisitor< T, WORLD_OBJECT_CONTAINER > &visitor) |
| template<class T > | |
| std::size_t | GetWorldObjectCountInGrid () const |
| template<class SPECIFIC_OBJECT > | |
| void | AddGridObject (SPECIFIC_OBJECT *obj) |
| template<class T > | |
| std::size_t | GetGridObjectCountInGrid () const |
Private Attributes | |
| GRID_OBJECT_CONTAINER | i_container |
| WORLD_OBJECT_CONTAINER | i_objects |
|
inline |
Inserts a container type object into the grid.
Definition at line 95 of file Grid.h.
References ASSERT, and Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::i_container.
Referenced by Map::AddToGrid(), Map::AddToGrid(), and Map::SwitchGridContainers().
|
inline |
an object of interested enters the grid
Definition at line 53 of file Grid.h.
References ASSERT, and Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::i_objects.
Referenced by Map::AddToGrid(), Map::AddToGrid(), and Map::SwitchGridContainers().
|
inline |
Removes a containter type object from the grid Returns the number of container type object within the grid.
Definition at line 114 of file Grid.h.
References Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::i_container.
|
inline |
Returns the number of object within the grid.
Definition at line 87 of file Grid.h.
References Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::i_objects.
|
inline |
an object of interested exits the grid
Definition at line 72 of file Grid.h.
References Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::i_container, and TypeContainerVisitor< Visitor, TypeContainer >::Visit().
Referenced by NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::VisitAllGrids(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::VisitAllGrids(), NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::VisitGrid(), and NGrid< N, WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::VisitGrid().
|
inline |
Definition at line 79 of file Grid.h.
References Grid< WORLD_OBJECT_CONTAINER, GRID_OBJECT_CONTAINER >::i_objects, and TypeContainerVisitor< Visitor, TypeContainer >::Visit().
|
private |
|
private |