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