AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
GridObject< T > Class Template Reference

#include "Object.h"

Public Member Functions

bool IsInGrid () const
 
void AddToGrid (GridRefMgr< T > &m)
 
void RemoveFromGrid ()
 

Private Attributes

GridReference< T > _gridRef
 

Detailed Description

template<class T>
class GridObject< T >

Member Function Documentation

◆ AddToGrid()

template<class T >
void GridObject< T >::AddToGrid ( GridRefMgr< T > &  m)
inline
350{ ASSERT(!IsInGrid()); _gridRef.link(&m, (T*)this); }
#define ASSERT
Definition: Errors.h:68
void link(TO *toObj, FROM *fromObj)
Definition: Reference.h:45
bool IsInGrid() const
Definition: Object.h:349
GridReference< T > _gridRef
Definition: Object.h:353

References GridObject< T >::_gridRef, ASSERT, GridObject< T >::IsInGrid(), and Reference< TO, FROM >::link().

Referenced by AddObjectHelper().

◆ IsInGrid()

template<class T >
bool GridObject< T >::IsInGrid ( ) const
inline

◆ RemoveFromGrid()

Member Data Documentation

◆ _gridRef