Package net.dermetfan.gdx.physics.box2d
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 voidapply(T obj)<C extends WorldObserver.Change<T>>
booleannewValuesEqual(C other)if the values applied inapply(Object)equalbooleanupdate(T obj)Methods inherited from interface com.badlogic.gdx.utils.Pool.Poolable
reset
-
Method Details
-
update
- Parameters:
obj- the object to check for changes since the last time this method was called- Returns:
- if anything changed
-
apply
- Parameters:
obj- the object to apply the changes sinceupdate(Object)to
-
newValuesEqual
if the values applied inapply(Object)equal
-