xoreos
0.0.5
|
#include <objectcontainer.h>
Public Member Functions | |
ObjectContainer () | |
~ObjectContainer () | |
void | clearObjects () |
void | addObject (DragonAge2::Object &object) |
Add an object to this container. More... | |
void | removeObject (DragonAge2::Object &object) |
Remove an object from this container. More... | |
::Aurora::NWScript::Object * | getFirstObjectByType (ObjectType type) const |
Return the first object of this type. More... | |
::Aurora::NWScript::ObjectSearch * | findObjectsByType (ObjectType type) const |
Return a search context to iterate over all objects of this type. More... | |
Public Member Functions inherited from Aurora::NWScript::ObjectContainer | |
ObjectContainer () | |
~ObjectContainer () | |
void | clearObjects () |
void | addObject (Object &object) |
Add an object to this container. More... | |
void | removeObject (Object &object) |
Remove an object from this container. More... | |
Object * | getObjectByID (uint32 id) const |
Find a specific object by ID. More... | |
Object * | getFirstObject () const |
Return the first object. More... | |
Object * | getFirstObjectByTag (const Common::UString &tag) const |
Return the first object with this tag. More... | |
ObjectSearch * | findObjects () const |
Return a search context to iterate over all objects. More... | |
ObjectSearch * | findObjectsByTag (const Common::UString &tag) const |
Return a search context to iterate over all objects with this tag. More... | |
Static Public Member Functions | |
static DragonAge2::Object * | toObject (::Aurora::NWScript::Object *object) |
static Area * | toArea (Aurora::NWScript::Object *object) |
static Waypoint * | toWaypoint (Aurora::NWScript::Object *object) |
static Placeable * | toPlaceable (Aurora::NWScript::Object *object) |
static Creature * | toCreature (Aurora::NWScript::Object *object) |
static Event * | toEvent (Aurora::NWScript::EngineType *engineType) |
Private Types | |
typedef std::list< DragonAge2::Object * > | ObjectList |
typedef std::map< ObjectType, ObjectList > | ObjectMap |
Private Attributes | |
ObjectMap | _objects |
Additional Inherited Members | |
Protected Member Functions inherited from Aurora::NWScript::ObjectContainer | |
void | lock () |
void | unlock () |
Definition at line 68 of file objectcontainer.h.
|
private |
Definition at line 96 of file objectcontainer.h.
|
private |
Definition at line 97 of file objectcontainer.h.
Engines::DragonAge2::ObjectContainer::ObjectContainer | ( | ) |
Definition at line 66 of file objectcontainer.cpp.
Engines::DragonAge2::ObjectContainer::~ObjectContainer | ( | ) |
Definition at line 69 of file objectcontainer.cpp.
void Engines::DragonAge2::ObjectContainer::addObject | ( | DragonAge2::Object & | object | ) |
Add an object to this container.
Definition at line 82 of file objectcontainer.cpp.
References _objects, Aurora::NWScript::ObjectContainer::addObject(), Aurora::NWScript::ObjectContainer::lock(), and Aurora::NWScript::ObjectContainer::unlock().
Referenced by Engines::DragonAge2::Area::loadObject().
void Engines::DragonAge2::ObjectContainer::clearObjects | ( | ) |
Definition at line 72 of file objectcontainer.cpp.
References _objects, Aurora::NWScript::ObjectContainer::clearObjects(), Aurora::NWScript::ObjectContainer::lock(), and Aurora::NWScript::ObjectContainer::unlock().
Referenced by Engines::DragonAge2::Campaign::unload(), and Engines::DragonAge2::Campaign::unloadArea().
Aurora::NWScript::ObjectSearch * Engines::DragonAge2::ObjectContainer::findObjectsByType | ( | ObjectType | type | ) | const |
Return a search context to iterate over all objects of this type.
Definition at line 112 of file objectcontainer.cpp.
References _objects.
Aurora::NWScript::Object * Engines::DragonAge2::ObjectContainer::getFirstObjectByType | ( | ObjectType | type | ) | const |
Return the first object of this type.
Definition at line 102 of file objectcontainer.cpp.
References _objects, and Aurora::NWScript::SearchRange< T >::get().
Referenced by Engines::DragonAge2::Area::getEntryLocation().
void Engines::DragonAge2::ObjectContainer::removeObject | ( | DragonAge2::Object & | object | ) |
Remove an object from this container.
Definition at line 92 of file objectcontainer.cpp.
References _objects, Aurora::NWScript::ObjectContainer::lock(), Aurora::NWScript::ObjectContainer::removeObject(), and Aurora::NWScript::ObjectContainer::unlock().
Referenced by Engines::DragonAge2::Area::clean().
|
static |
Definition at line 126 of file objectcontainer.cpp.
|
static |
Definition at line 138 of file objectcontainer.cpp.
|
static |
Definition at line 142 of file objectcontainer.cpp.
Referenced by Engines::DragonAge2::Functions::getCurrentEventType(), Engines::DragonAge2::Functions::getEventCreator(), Engines::DragonAge2::Functions::getEventCreatorRef(), Engines::DragonAge2::Functions::getEventTarget(), Engines::DragonAge2::Functions::getEventTargetRef(), Engines::DragonAge2::Functions::getEventType(), Engines::DragonAge2::Functions::getEventTypeRef(), Engines::DragonAge2::Functions::handleEvent(), Engines::DragonAge2::Functions::handleEventRef(), Engines::DragonAge2::Functions::isEventValid(), Engines::DragonAge2::Functions::setEventCreator(), Engines::DragonAge2::Functions::setEventCreatorRef(), Engines::DragonAge2::Functions::setEventType(), and Engines::DragonAge2::Functions::setEventTypeRef().
|
static |
Definition at line 122 of file objectcontainer.cpp.
Referenced by Engines::DragonAge2::Functions::getArea(), Engines::DragonAge2::Functions::getDistanceBetween(), Engines::DragonAge2::Area::getEntryLocation(), Engines::DragonAge2::Functions::getName(), Engines::DragonAge2::Functions::getNearestObject(), Engines::DragonAge2::Functions::getNearestObjectByTag(), Engines::DragonAge2::Functions::getObjectType(), Engines::DragonAge2::Functions::getParamObject(), Engines::DragonAge2::Functions::getPosition(), Engines::DragonAge2::Functions::getResRef(), Engines::DragonAge2::Functions::setName(), and Engines::DragonAge2::Functions::UT_getNearestObjectByTag().
|
static |
Definition at line 134 of file objectcontainer.cpp.
|
static |
Definition at line 130 of file objectcontainer.cpp.
|
private |
Definition at line 99 of file objectcontainer.h.
Referenced by addObject(), clearObjects(), findObjectsByType(), getFirstObjectByType(), and removeObject().