#include <activeobjectmgr.h>
Public Member Functions | |
| ActiveObjectMgr ()=default | |
| DISABLE_CLASS_COPY (ActiveObjectMgr) | |
| virtual | ~ActiveObjectMgr () |
| virtual void | step (float dtime, const std::function< void(T *)> &f)=0 |
| virtual bool | registerObject (std::unique_ptr< T > obj)=0 |
| virtual void | removeObject (u16 id)=0 |
| void | clear () |
| T * | getActiveObject (u16 id) |
Protected Member Functions | |
| u16 | getFreeId () const |
| bool | isFreeId (u16 id) const |
Protected Attributes | |
| ModifySafeMap< u16, std::unique_ptr< T > > | m_active_objects |
Friends | |
| class | ::TestServerActiveObjectMgr |
|
default |
|
inlinevirtual |
Reimplemented in client::ActiveObjectMgr, and server::ActiveObjectMgr.
References m_active_objects, and SANITY_CHECK.
|
inline |
References m_active_objects, and removeObject().
Referenced by benchGetObjectsInArea(), benchGetObjectsInsideRadius(), TEST_CASE(), TEST_CASE(), and TestClientActiveObjectMgr::testGetActiveSelectableObjects().
| ActiveObjectMgr< T >::DISABLE_CLASS_COPY | ( | ActiveObjectMgr< T > | ) |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
pure virtual |
Implemented in client::ActiveObjectMgr, and server::ActiveObjectMgr.
|
pure virtual |
Implemented in client::ActiveObjectMgr, and server::ActiveObjectMgr.
Referenced by clear().
|
pure virtual |
Implemented in client::ActiveObjectMgr, and server::ActiveObjectMgr.
|
friend |
|
protected |
Referenced by ~ActiveObjectMgr(), clear(), getActiveObject(), and isFreeId().