25 #ifndef ENGINES_WITCHER_OBJECTCONTAINER_H 26 #define ENGINES_WITCHER_OBJECTCONTAINER_H 106 #endif // ENGINES_WITCHER_OBJECTCONTAINER_H
void addObject(Witcher::Object &object)
Add an object to this container.
An area in The Witcher, holding all objects and area geometry within, as well as general area propert...
::Aurora::NWScript::Object * getFirstObjectByType(ObjectType type) const
Return the first object of this type.
An object within a Witcher area.
static Area * toArea(Aurora::NWScript::Object *object)
ObjectDistanceSort(const Witcher::Object &target)
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 * toCreature(Aurora::NWScript::Object *object)
static Module * toModule(Aurora::NWScript::Object *object)
Basic The Witcher type definitions.
static Waypoint * toWaypoint(Aurora::NWScript::Object *object)
float getDistance(Witcher::Object &a)
static Creature * toPC(Aurora::NWScript::Object *object)
static Door * toDoor(Aurora::NWScript::Object *object)
void removeObject(Witcher::Object &object)
Remove an object from this container.
bool operator()(Witcher::Object *a, Witcher::Object *b)
std::map< ObjectType, ObjectList > ObjectMap
Low-level type definitions to handle fixed width types portably.
static Location * toLocation(Aurora::NWScript::EngineType *engineType)
static Situated * toSituated(Aurora::NWScript::Object *object)
An NWScript object container.
std::list< Witcher::Object * > ObjectList
static Witcher::Object * toObject(::Aurora::NWScript::Object *object)
A class able to sort objects by distance to a target object.