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