|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JbSerializer
Serializer for jbox2d, used to serialize any aspect of the physics world
| Nested Class Summary | |
|---|---|
static interface |
JbSerializer.ObjectSigner
Interface that allows the serializer to look up tags for each object, which can be used later during deserializing by the developer. |
| Method Summary | |
|---|---|
SerializationResult |
serialize(org.jbox2d.dynamics.Body body)
Serializes a body |
SerializationResult |
serialize(org.jbox2d.dynamics.Fixture fixture)
Serializes a fixture |
SerializationResult |
serialize(org.jbox2d.dynamics.joints.Joint joint,
Map<org.jbox2d.dynamics.Body,Integer> bodyIndexMap,
Map<org.jbox2d.dynamics.joints.Joint,Integer> jointIndexMap)
Serializes joints. |
SerializationResult |
serialize(org.jbox2d.collision.shapes.Shape shape)
Serializes a shape |
SerializationResult |
serialize(org.jbox2d.dynamics.World world)
Serializes the world |
void |
setObjectSigner(JbSerializer.ObjectSigner signer)
Sets the object signer for the serializer. |
void |
setUnsupportedListener(UnsupportedListener listener)
Sets a listener for unsupported exception instead of stopping the whole serialization process by throwing and exception. |
| Method Detail |
|---|
void setObjectSigner(JbSerializer.ObjectSigner signer)
signer - void setUnsupportedListener(UnsupportedListener listener)
listener -
SerializationResult serialize(org.jbox2d.dynamics.World world)
throws UnsupportedObjectException
world -
UnsupportedObjectException - if a physics object is unsupported by this library.setUnsupportedListener(UnsupportedListener)
SerializationResult serialize(org.jbox2d.dynamics.Body body)
throws UnsupportedObjectException
body -
UnsupportedObjectException - if a physics object is unsupported by this library.setUnsupportedListener(UnsupportedListener)
SerializationResult serialize(org.jbox2d.dynamics.Fixture fixture)
throws UnsupportedObjectException
fixture -
UnsupportedObjectException - if a physics object is unsupported by this library.setUnsupportedListener(UnsupportedListener)
SerializationResult serialize(org.jbox2d.collision.shapes.Shape shape)
throws UnsupportedObjectException
shape -
UnsupportedObjectException - if a physics object is unsupported by this library.setUnsupportedListener(UnsupportedListener)
SerializationResult serialize(org.jbox2d.dynamics.joints.Joint joint,
Map<org.jbox2d.dynamics.Body,Integer> bodyIndexMap,
Map<org.jbox2d.dynamics.joints.Joint,Integer> jointIndexMap)
joint - bodyIndexMap - jointIndexMap -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||