Package net.dermetfan.gdx.physics.box2d
Class WorldObserver.FixtureChange
java.lang.Object
net.dermetfan.gdx.physics.box2d.WorldObserver.FixtureChange
- All Implemented Interfaces:
com.badlogic.gdx.utils.Pool.Poolable,WorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>
- Enclosing class:
WorldObserver
public static class WorldObserver.FixtureChange
extends Object
implements WorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>
the changes of a
Fixture-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.physics.box2d.Filter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(com.badlogic.gdx.physics.box2d.Fixture fixture) boolean<C extends WorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>>
booleannewValuesEqual(C other) if the values applied inWorldObserver.Change.apply(Object)equalvoidreset()booleanupdate(com.badlogic.gdx.physics.box2d.Fixture fixture)
-
Field Details
-
newDensity
-
newFriction
-
newRestitution
-
newFilter
public com.badlogic.gdx.physics.box2d.Filter newFilter -
newSensor
-
newUserData
-
-
Constructor Details
-
FixtureChange
public FixtureChange()
-
-
Method Details
-
isDestroyed
public boolean isDestroyed()- Returns:
- the
destroyed
-
update
public boolean update(com.badlogic.gdx.physics.box2d.Fixture fixture) - Specified by:
updatein interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>- Parameters:
fixture- the object to check for changes since the last time this method was called- Returns:
- if anything changed
-
apply
public void apply(com.badlogic.gdx.physics.box2d.Fixture fixture) - Specified by:
applyin interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>- Parameters:
fixture- the object to apply the changes sinceWorldObserver.Change.update(Object)to- Throws:
IllegalStateException- if the fixture has beendestroyed
-
newValuesEqual
public <C extends WorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>> boolean newValuesEqual(C other) Description copied from interface:WorldObserver.Changeif the values applied inWorldObserver.Change.apply(Object)equal- Specified by:
newValuesEqualin interfaceWorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>
-
reset
public void reset()- Specified by:
resetin interfacecom.badlogic.gdx.utils.Pool.Poolable
-