Module org.dyn4j
Package org.dyn4j.world.listener
Class DestructionListenerAdapter<T extends PhysicsBody>
- Object
-
- DestructionListenerAdapter<T>
-
- Type Parameters:
T
- thePhysicsBody
type
- All Implemented Interfaces:
DestructionListener<T>
,WorldEventListener
public class DestructionListenerAdapter<T extends PhysicsBody> extends Object implements DestructionListener<T>
Convenience class for implementing theDestructionListener
interface.This class can be used to implement only the methods desired instead of all the methods contained in the
DestructionListener
interface.- Since:
- 1.0.0
- Version:
- 4.0.0
- Author:
- William Bittle
-
-
Constructor Summary
Constructors Constructor Description DestructionListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroyed(ContactConstraint<T> contactConstraint)
Called when implicit destruction of aContactConstraint
has occurred.void
destroyed(Joint<T> joint)
Called when implicit destruction of aJoint
has occurred.void
destroyed(T body)
Called when implicit destruction of aPhysicsBody
has occurred.
-
-
-
Method Detail
-
destroyed
public void destroyed(Joint<T> joint)
Description copied from interface:DestructionListener
Called when implicit destruction of aJoint
has occurred.Modification of the
PhysicsWorld
is permitted during this method.- Specified by:
destroyed
in interfaceDestructionListener<T extends PhysicsBody>
- Parameters:
joint
- theJoint
that was destroyed- See Also:
CollisionWorld.removeBody(CollisionBody)
,PhysicsWorld.removeAllBodiesAndJoints(boolean)
-
destroyed
public void destroyed(T body)
Description copied from interface:DestructionListener
Called when implicit destruction of aPhysicsBody
has occurred.Modification of the
PhysicsWorld
is not permitted during this method.- Specified by:
destroyed
in interfaceDestructionListener<T extends PhysicsBody>
- Parameters:
body
- thePhysicsBody
that was destroyed- See Also:
PhysicsWorld.removeAllBodiesAndJoints(boolean)
-
destroyed
public void destroyed(ContactConstraint<T> contactConstraint)
Description copied from interface:DestructionListener
Called when implicit destruction of aContactConstraint
has occurred.Modification of the
PhysicsWorld
is not permitted during this method.- Specified by:
destroyed
in interfaceDestructionListener<T extends PhysicsBody>
- Parameters:
contactConstraint
- theContactConstraint
that was destroyed- See Also:
CollisionWorld.removeBody(CollisionBody)
,PhysicsWorld.removeAllBodiesAndJoints(boolean)
-
-