25 #ifndef ENGINES_KOTOR2_OBJECTCONTAINER_H 26 #define ENGINES_KOTOR2_OBJECTCONTAINER_H 104 #endif // ENGINES_KOTOR2_OBJECTCONTAINER_H
void addObject(KotOR2::Object &object)
Add an object to this container.
A class able to sort objects by distance to a target object.
float getDistance(KotOR2::Object &a)
bool operator()(KotOR2::Object *a, KotOR2::Object *b)
static Creature * toPartyMember(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 removeObject(KotOR2::Object &object)
Remove an object from this container.
Basic Star Wars: Knights of the Old Republic II - The Sith Lords type definitions.
static Creature * toPC(Aurora::NWScript::Object *object)
Low-level type definitions to handle fixed width types portably.
ObjectDistanceSort(const KotOR2::Object &target)
::Aurora::NWScript::Object * getFirstObjectByType(ObjectType type) const
Return the first object of this type.
static Door * toDoor(Aurora::NWScript::Object *object)
std::map< ObjectType, ObjectList > ObjectMap
static Waypoint * toWaypoint(Aurora::NWScript::Object *object)
ObjectType
Object type, matches the bitfield in nwscript.nss.
static KotOR2::Object * toObject(::Aurora::NWScript::Object *object)
std::list< KotOR2::Object * > ObjectList
static Area * toArea(Aurora::NWScript::Object *object)
An NWScript object container.
static Situated * toSituated(Aurora::NWScript::Object *object)
An area in Star Wars: Knights of the Old Republic II - The Sith Lords, holding all objects and rooms ...
static Module * toModule(Aurora::NWScript::Object *object)
static Creature * toCreature(Aurora::NWScript::Object *object)