public static class Breakable.Callback.Adapter extends java.lang.Object implements Breakable.Callback
Breakable.Callback. Instantiate this if you want to only use a subset of the methods of Breakable.Callback.Breakable.Callback.Adapter| Constructor and Description |
|---|
Adapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
destroyed(com.badlogic.gdx.physics.box2d.Body body,
Breakable breakable)
called by
Breakable.Manager.destroy(Body) |
boolean |
destroyed(com.badlogic.gdx.physics.box2d.Fixture fixture,
Breakable breakable)
called by
Breakable.Manager.destroy(Fixture) |
boolean |
destroyed(com.badlogic.gdx.physics.box2d.Joint joint,
Breakable breakable)
called by
Breakable.Manager.destroy(Joint) |
boolean |
strained(com.badlogic.gdx.physics.box2d.Fixture fixture,
Breakable breakable,
com.badlogic.gdx.physics.box2d.Contact contact,
com.badlogic.gdx.physics.box2d.ContactImpulse impulse,
float normalImpulse,
float tangentImpulse)
|
boolean |
strained(com.badlogic.gdx.physics.box2d.Joint joint,
Breakable breakable,
com.badlogic.gdx.math.Vector2 reactionForce,
float reactionTorque)
called by
Breakable.Manager.strain(Joint, float) |
public boolean strained(com.badlogic.gdx.physics.box2d.Fixture fixture,
Breakable breakable,
com.badlogic.gdx.physics.box2d.Contact contact,
com.badlogic.gdx.physics.box2d.ContactImpulse impulse,
float normalImpulse,
float tangentImpulse)
Breakable.Callbackstrained in interface Breakable.Callbackfixture - the strained fixturebreakable - the Breakable instance causing this callback to be calledcontact - the straining contactimpulse - the straining ContactImpulsenormalImpulse - the sum of the normal impulses of impulsetangentImpulse - the sum of the tangent impulses of impulsepublic boolean strained(com.badlogic.gdx.physics.box2d.Joint joint,
Breakable breakable,
com.badlogic.gdx.math.Vector2 reactionForce,
float reactionTorque)
Breakable.CallbackBreakable.Manager.strain(Joint, float)strained in interface Breakable.Callbackjoint - the strained Jointbreakable - the Breakable instance causing this callback to be calledreactionForce - the reaction forcepublic boolean destroyed(com.badlogic.gdx.physics.box2d.Body body,
Breakable breakable)
Breakable.CallbackBreakable.Manager.destroy(Body)destroyed in interface Breakable.Callbackpublic boolean destroyed(com.badlogic.gdx.physics.box2d.Fixture fixture,
Breakable breakable)
Breakable.CallbackBreakable.Manager.destroy(Fixture)destroyed in interface Breakable.Callbackpublic boolean destroyed(com.badlogic.gdx.physics.box2d.Joint joint,
Breakable breakable)
Breakable.CallbackBreakable.Manager.destroy(Joint)destroyed in interface Breakable.Callback