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 Details

    • newDensity

      public Float newDensity
    • newFriction

      public Float newFriction
    • newRestitution

      public Float newRestitution
    • newFilter

      public com.badlogic.gdx.physics.box2d.Filter newFilter
    • newSensor

      public Boolean newSensor
    • newUserData

      public Object 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:
      update in interface WorldObserver.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:
      apply in interface WorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>
      Parameters:
      fixture - the object to apply the changes since WorldObserver.Change.update(Object) to
      Throws:
      IllegalStateException - if the fixture has been destroyed
    • newValuesEqual

      public <C extends WorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>> boolean newValuesEqual(C other)
      Description copied from interface: WorldObserver.Change
      if the values applied in WorldObserver.Change.apply(Object) equal
      Specified by:
      newValuesEqual in interface WorldObserver.Change<com.badlogic.gdx.physics.box2d.Fixture>
    • reset

      public void reset()
      Specified by:
      reset in interface com.badlogic.gdx.utils.Pool.Poolable