25 #ifndef ENGINES_DRAGONAGE2_OBJECTCONTAINER_H 26 #define ENGINES_DRAGONAGE2_OBJECTCONTAINER_H 45 namespace DragonAge2 {
106 #endif // ENGINES_DRAGONAGE2_OBJECTCONTAINER_H
::Aurora::NWScript::Object * getFirstObjectByType(ObjectType type) const
Return the first object of this type.
static Creature * toCreature(Aurora::NWScript::Object *object)
std::map< ObjectType, ObjectList > ObjectMap
A class able to sort objects by distance to a target object.
std::list< DragonAge2::Object * > ObjectList
An area in Dragon Age II, holding all objects and rooms within, as well as general area properties li...
void addObject(DragonAge2::Object &object)
Add an object to this container.
static Waypoint * toWaypoint(Aurora::NWScript::Object *object)
void removeObject(DragonAge2::Object &object)
Remove an object from this container.
float getDistance(DragonAge2::Object &a)
::Aurora::NWScript::ObjectSearch * findObjectsByType(ObjectType type) const
Return a search context to iterate over all objects of this type.
static Event * toEvent(Aurora::NWScript::EngineType *engineType)
Low-level type definitions to handle fixed width types portably.
bool operator()(DragonAge2::Object *a, DragonAge2::Object *b)
static Area * toArea(Aurora::NWScript::Object *object)
ObjectType
Object type, matches the bitfield in script.ldf.
static DragonAge2::Object * toObject(::Aurora::NWScript::Object *object)
static Placeable * toPlaceable(Aurora::NWScript::Object *object)
ObjectDistanceSort(const DragonAge2::Object &target)
Basic Dragon Age II type definitions.
An NWScript object container.