25 #ifndef ENGINES_SONIC_OBJECTCONTAINER_H 26 #define ENGINES_SONIC_OBJECTCONTAINER_H 94 #endif // ENGINES_SONIC_OBJECTCONTAINER_H static Area * toArea(Aurora::NWScript::Object *object)
std::map< ObjectType, ObjectList > ObjectMap
void addObject(Sonic::Object &object)
Add an object to this container.
A class able to sort objects by distance to a target object.
Basic Sonic Chronicles: The Dark Brotherhood types and defines.
An object within a Sonic area.
static Sonic::Object * toObject(::Aurora::NWScript::Object *object)
std::list< Sonic::Object * > ObjectList
float getDistance(Sonic::Object &a)
ObjectDistanceSort(const Sonic::Object &target)
::Aurora::NWScript::Object * getFirstObjectByType(ObjectType type) const
Return the first object of this type.
static Placeable * toPlaceable(Aurora::NWScript::Object *object)
Low-level type definitions to handle fixed width types portably.
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.
void removeObject(Sonic::Object &object)
Remove an object from this container.
bool operator()(Sonic::Object *a, Sonic::Object *b)
An NWScript object container.