PhysicsObjectCollection¶
-
class PhysicsObjectCollection¶
This is a set of zero or more
PhysicsObjects. It’s handy for returning from functions that need to return multiplePhysicsObjects.Inheritance diagram
digraph inheritance27fd92dfc3 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "PhysicsObjectCollection" [URL="acron.physics.PhysicsObjectCollection.html#acron.physics.PhysicsObjectCollection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "PhysicsObjectCollection" [arrowsize=0.75,style=""]; }- PhysicsObjectCollection.__add__()¶
- PhysicsObjectCollection.__getitem__()¶
- PhysicsObjectCollection.__iadd__()¶
- PhysicsObjectCollection.__init__()¶
- PhysicsObjectCollection.add_physics_object()¶
Adds a new
PhysicsObjectto the collection.
- PhysicsObjectCollection.add_physics_objects_from()¶
Adds all the
PhysicsObjectsindicated in the other collection to this collection. The other physics_objects are simply appended to the end of the physics_objects in this list; duplicates are not automatically removed.
- PhysicsObjectCollection.assign()¶
- PhysicsObjectCollection.clear()¶
Removes all
PhysicsObjectsfrom the collection.
- PhysicsObjectCollection.get_num_physics_objects()¶
Returns the number of
PhysicsObjectsin the collection.
- PhysicsObjectCollection.get_physics_object()¶
Returns the nth
PhysicsObjectin the collection.
- PhysicsObjectCollection.has_physics_object()¶
Returns true if the indicated
PhysicsObjectappears in this collection, false otherwise.
- PhysicsObjectCollection.is_empty()¶
Returns true if there are no
PhysicsObjectsin the collection, false otherwise.
- PhysicsObjectCollection.output()¶
Writes a brief one-line description of the
PhysicsObjectCollectionto the indicated output stream.
- PhysicsObjectCollection.remove_duplicate_physics_objects()¶
Removes any duplicate entries of the same
PhysicsObjectson this collection. If aPhysicsObjectappears multiple times, the first appearance is retained; subsequent appearances are removed.
- PhysicsObjectCollection.remove_physics_object()¶
Removes the indicated
PhysicsObjectfrom the collection. Returns true if the physics_object was removed, false if it was not a member of the collection.
- PhysicsObjectCollection.remove_physics_objects_from()¶
Removes from this collection all of the
PhysicsObjectslisted in the other collection.
- PhysicsObjectCollection.size()¶
Returns the number of physics objects in the collection. This is the same thing as
get_num_physics_objects().
- PhysicsObjectCollection.write()¶
Writes a complete multi-line description of the
PhysicsObjectCollectionto the indicated output stream.