public static interface WorldObserver.Listener
WorldObserver| Modifier and Type | Interface and Description |
|---|---|
static class |
WorldObserver.Listener.Adapter
A class that implements Listener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changed(com.badlogic.gdx.physics.box2d.Body body,
WorldObserver.BodyChange change) |
void |
changed(com.badlogic.gdx.physics.box2d.Fixture fixture,
WorldObserver.FixtureChange change) |
void |
changed(com.badlogic.gdx.physics.box2d.Joint joint,
WorldObserver.JointChange change) |
void |
changed(com.badlogic.gdx.physics.box2d.World world,
WorldObserver.WorldChange change) |
void |
created(com.badlogic.gdx.physics.box2d.Body body) |
void |
created(com.badlogic.gdx.physics.box2d.Fixture fixture) |
void |
created(com.badlogic.gdx.physics.box2d.Joint joint) |
void |
destroyed(com.badlogic.gdx.physics.box2d.Body body) |
void |
destroyed(com.badlogic.gdx.physics.box2d.Fixture fixture) |
void |
destroyed(com.badlogic.gdx.physics.box2d.Joint joint) |
void |
postUpdate(com.badlogic.gdx.physics.box2d.World world,
float step)
called at the very end of
WorldObserver.update(World, float) |
void |
preUpdate(com.badlogic.gdx.physics.box2d.World world,
float step)
called at the very beginning of
WorldObserver.update(World, float) |
void |
removedFrom(WorldObserver observer) |
void |
setOn(WorldObserver observer) |
void setOn(WorldObserver observer)
observer - the WorldObserver this Listener has just been set onvoid removedFrom(WorldObserver observer)
observer - the WorldObserver this Listener has just been removed fromvoid preUpdate(com.badlogic.gdx.physics.box2d.World world,
float step)
WorldObserver.update(World, float)void postUpdate(com.badlogic.gdx.physics.box2d.World world,
float step)
WorldObserver.update(World, float)void changed(com.badlogic.gdx.physics.box2d.World world,
WorldObserver.WorldChange change)
world - the World that changedchange - the changevoid changed(com.badlogic.gdx.physics.box2d.Body body,
WorldObserver.BodyChange change)
body - the Body that changedchange - the changevoid created(com.badlogic.gdx.physics.box2d.Body body)
body - the created Bodyvoid destroyed(com.badlogic.gdx.physics.box2d.Body body)
body - the destroyed Bodyvoid changed(com.badlogic.gdx.physics.box2d.Fixture fixture,
WorldObserver.FixtureChange change)
fixture - the Fixture that changedchange - the changevoid created(com.badlogic.gdx.physics.box2d.Fixture fixture)
fixture - the created Fixturevoid destroyed(com.badlogic.gdx.physics.box2d.Fixture fixture)
fixture - the destroyed Fixturevoid changed(com.badlogic.gdx.physics.box2d.Joint joint,
WorldObserver.JointChange change)
joint - the Joint that changedchange - the changevoid created(com.badlogic.gdx.physics.box2d.Joint joint)
joint - the created Jointvoid destroyed(com.badlogic.gdx.physics.box2d.Joint joint)
joint - the destroyed Joint