25 #ifndef ENGINES_NWN2_OBJECTCONTAINER_H 26 #define ENGINES_NWN2_OBJECTCONTAINER_H 106 #endif // ENGINES_NWN2_OBJECTCONTAINER_H A class able to sort objects by distance to a target object.
static NWN2::Object * toObject(::Aurora::NWScript::Object *object)
An area in Neverwinter Nights 2, holding all objects, room tiles and terrain within, as well as general area properties like the current background music and ambient sounds.
static Creature * toCreature(Aurora::NWScript::Object *object)
float getDistance(NWN2::Object &a)
An object within a NWN2 area.
std::map< ObjectType, ObjectList > ObjectMap
void removeObject(NWN2::Object &object)
Remove an object from this container.
Basic Neverwinter Nights 2 type definitions.
static Location * toLocation(Aurora::NWScript::EngineType *engineType)
static Situated * toSituated(Aurora::NWScript::Object *object)
static Module * toModule(Aurora::NWScript::Object *object)
::Aurora::NWScript::ObjectSearch * findObjectsByType(ObjectType type) const
Return a search context to iterate over all objects of this type.
static Placeable * toPlaceable(Aurora::NWScript::Object *object)
void addObject(NWN2::Object &object)
Add an object to this container.
bool operator()(NWN2::Object *a, NWN2::Object *b)
Low-level type definitions to handle fixed width types portably.
::Aurora::NWScript::Object * getFirstObjectByType(ObjectType type) const
Return the first object of this type.
std::list< NWN2::Object * > ObjectList
static Door * toDoor(Aurora::NWScript::Object *object)
ObjectType
Object type, matches the bitfield in nwscript.nss.
ObjectDistanceSort(const NWN2::Object &target)
static Area * toArea(Aurora::NWScript::Object *object)
An NWScript object container.
static Creature * toPC(Aurora::NWScript::Object *object)
static Waypoint * toWaypoint(Aurora::NWScript::Object *object)