|
| __init__ () |
| The default CollisionHandlerEvent will throw no events.
|
|
| __init__ (const CollisionHandlerHighestEvent) |
|
Public Member Functions inherited from CollisionHandlerEvent |
| __init__ () |
| The default CollisionHandlerEvent will throw no events.
|
|
| __init__ (const CollisionHandlerEvent) |
|
object | __reduce__ () |
|
| __setstate__ (VectorUchar data) |
|
| addAgainPattern (str again_pattern) |
| Adds the pattern string that indicates how the event names are generated when a collision between two particular nodes is still detected.
|
|
| addInPattern (str in_pattern) |
| Adds a pattern string to the list of events that will be generated in response to a collision.
|
|
| addOutPattern (str out_pattern) |
| Adds the pattern string that indicates how the event names are generated when a collision between two particular nodes is no longer detected.
|
|
| clear () |
| Empties the list of elements that all colliders are known to be colliding with.
|
|
| clearAgainPatterns () |
| Removes all of the previously-added in patterns.
|
|
| clearInPatterns () |
| Removes all of the previously-added in patterns.
|
|
| clearOutPatterns () |
| Removes all of the previously-added in patterns.
|
|
| flush () |
| Same as clear() except "out" events are thrown.
|
|
str | getAgainPattern (int n) |
| Returns the nth pattern string that indicates how the event names are generated for each collision detected.
|
|
list | getAgainPatterns () |
|
str | getInPattern (int n) |
| Returns the nth pattern string that indicates how the event names are generated for each collision detected.
|
|
list | getInPatterns () |
|
int | getNumAgainPatterns () |
| Returns the number of in pattern strings that have been added.
|
|
int | getNumInPatterns () |
| Returns the number of in pattern strings that have been added.
|
|
int | getNumOutPatterns () |
| Returns the number of in pattern strings that have been added.
|
|
str | getOutPattern (int n) |
| Returns the nth pattern string that indicates how the event names are generated for each collision detected.
|
|
list | getOutPatterns () |
|
| readDatagram (DatagramIterator source) |
| Restores the object state from the given datagram, previously obtained using getstate.
|
|
| setAgainPattern (str again_pattern) |
| This method is deprecated; it completely replaces all the in patterns that have previously been set with the indicated pattern.
|
|
| setInPattern (str in_pattern) |
| This method is deprecated; it completely replaces all the in patterns that have previously been set with the indicated pattern.
|
|
| setOutPattern (str out_pattern) |
| This method is deprecated; it completely replaces all the in patterns that have previously been set with the indicated pattern.
|
|
| writeDatagram (Datagram destination) |
| Serializes this object, to implement pickle support.
|
|
Public Member Functions inherited from CollisionHandler |
| __init__ (const CollisionHandler) |
|
Public Member Functions inherited from TypedObject |
TypeHandle | getType () |
|
int | getTypeIndex () |
| Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
|
|
bool | isExactType (TypeHandle handle) |
| Returns true if the current object is the indicated type exactly.
|
|
bool | isOfType (TypeHandle handle) |
| Returns true if the current object is or derives from the indicated type.
|
|
Public Member Functions inherited from ReferenceCount |
int | getRefCount () |
| Returns the current reference count.
|
|
| ref () |
| Explicitly increments the reference count.
|
|
bool | testRefCountIntegrity () |
| Does some easy checks to make sure that the reference count isn't completely bogus.
|
|
bool | testRefCountNonzero () |
| Does some easy checks to make sure that the reference count isn't zero, or completely bogus.
|
|
bool | unref () |
| Explicitly decrements the reference count.
|
|
A specialized kind of CollisionHandler that throws an event for each collision detected.
The event thrown may be based on the name of the moving object or the struck object, or both. The first parameter of the event will be a pointer to the CollisionEntry that triggered it.