xoreos  0.0.5
Public Member Functions | Private Attributes | List of all members
Aurora::NWScript::ObjectManager Class Reference

#include <objectman.h>

Inheritance diagram for Aurora::NWScript::ObjectManager:
Inheritance graph
[legend]
Collaboration diagram for Aurora::NWScript::ObjectManager:
Collaboration graph
[legend]

Public Member Functions

void registerObject (Object *object)
 
void unregisterObject (Object *object)
 
ObjectfindObject (uint32 id)
 

Private Attributes

Common::Mutex _objMutex
 
std::map< uint32, Object * > _objects
 

Additional Inherited Members

- Static Public Member Functions inherited from Common::Singleton< ObjectManager >
static ObjectManager & instance ()
 
static void destroy ()
 
- Protected Types inherited from Common::Singleton< ObjectManager >
typedef ObjectManager SingletonBaseType
 
- Protected Member Functions inherited from Common::Singleton< ObjectManager >
 Singleton ()
 
virtual ~Singleton ()
 

Detailed Description

Definition at line 40 of file objectman.h.

Member Function Documentation

◆ findObject()

Object * Aurora::NWScript::ObjectManager::findObject ( uint32  id)

Definition at line 48 of file objectman.cpp.

References _objects, and _objMutex.

◆ registerObject()

void Aurora::NWScript::ObjectManager::registerObject ( Object object)

Definition at line 34 of file objectman.cpp.

References _objects, and _objMutex.

◆ unregisterObject()

void Aurora::NWScript::ObjectManager::unregisterObject ( Object object)

Definition at line 42 of file objectman.cpp.

References _objects, _objMutex, and Aurora::NWScript::Object::getID().

Here is the call graph for this function:

Member Data Documentation

◆ _objects

std::map<uint32, Object *> Aurora::NWScript::ObjectManager::_objects
private

Definition at line 49 of file objectman.h.

Referenced by findObject(), registerObject(), and unregisterObject().

◆ _objMutex

Common::Mutex Aurora::NWScript::ObjectManager::_objMutex
private

Definition at line 48 of file objectman.h.

Referenced by findObject(), registerObject(), and unregisterObject().


The documentation for this class was generated from the following files: