Interface WorldObserver.Change<T>

All Superinterfaces:
com.badlogic.gdx.utils.Pool.Poolable
All Known Implementing Classes:
WorldObserver.BodyChange, WorldObserver.DistanceJointChange, WorldObserver.FixtureChange, WorldObserver.FrictionJointChange, WorldObserver.GearJointChange, WorldObserver.JointChange, WorldObserver.MotorJointChange, WorldObserver.MouseJointChange, WorldObserver.PrismaticJointChange, WorldObserver.RevoluteJointChange, WorldObserver.RopeJointChange, WorldObserver.WeldJointChange, WorldObserver.WheelJointChange, WorldObserver.WorldChange
Enclosing class:
WorldObserver

public static interface WorldObserver.Change<T>
extends com.badlogic.gdx.utils.Pool.Poolable
the changes of an object in a world since the last time update(Object) was called
Since:
0.6.0
  • Method Summary

    Modifier and Type Method Description
    void apply​(T obj)  
    <C extends WorldObserver.Change<T>>
    boolean
    newValuesEqual​(C other)
    if the values applied in apply(Object) equal
    boolean update​(T obj)  

    Methods inherited from interface com.badlogic.gdx.utils.Pool.Poolable

    reset
  • Method Details

    • update

      boolean update​(T obj)
      Parameters:
      obj - the object to check for changes since the last time this method was called
      Returns:
      if anything changed
    • apply

      void apply​(T obj)
      Parameters:
      obj - the object to apply the changes since update(Object) to
    • newValuesEqual

      <C extends WorldObserver.Change<T>> boolean newValuesEqual​(C other)
      if the values applied in apply(Object) equal