Package net.dermetfan.gdx.physics.box2d
Class Box2DMapObjectParser
java.lang.Object
net.dermetfan.gdx.physics.box2d.Box2DMapObjectParser
public class Box2DMapObjectParser
extends java.lang.Object
Parses 
Just create a new
  
If you only want specific Fixtures or Bodies, you can use the
  
How you define compatible objects in the TiledMap editor:
In your object layer, right-click an object and set its properties to those of the Body/Fixture/both (in case you're creating an
For type, you have to choose
To add Fixtures to a Body, add a
To create
For more information read the wiki.
MapObjects from a Map and generates Box2D Bodies, Fixtures and Joints from them.Just create a new
Box2DMapObjectParser and call load(World, MapLayer) to load all compatible objects (defined by the the aliases) into your World.If you only want specific Fixtures or Bodies, you can use the
createBody(World, MapObject) and createFixture(MapObject) methods.How you define compatible objects in the TiledMap editor:
In your object layer, right-click an object and set its properties to those of the Body/Fixture/both (in case you're creating an
object) you'd like, as defined in the used Box2DMapObjectParser.Aliases object.For type, you have to choose
Box2DMapObjectParser.Aliases.body, Box2DMapObjectParser.Aliases.fixture or Box2DMapObjectParser.Aliases.object.To add Fixtures to a Body, add a
Box2DMapObjectParser.Aliases.body property with the same value to each Fixture of a Body.To create
Joints, add any object to the layer and just put everything needed in its properties. Note that you use the editors unit here which will be converted to Box2D meters automatically using Box2DMapObjectParser.Aliases.unitScale.
  For more information read the wiki.
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBox2DMapObjectParser.Aliasesdefines thealiasesto use when parsingstatic interfaceBox2DMapObjectParser.ListenerAllows modification ofMapObjectsbefore they are used to create Box2D objects.
Note that the map object given to you is the one directly from the map, so if you modify it, you modify theMapinstance! If you want to avoid that, make a copy.
Also listens to Box2D objects that have been created. - 
Field Summary
Fields Modifier and Type Field Description static Box2DMapObjectParser.Listener.AdapterdefaultListenertheBox2DMapObjectParser.Listenerused by default (anBox2DMapObjectParser.Listener.Adapterinstance) - 
Constructor Summary
Constructors Constructor Description Box2DMapObjectParser()creates a newBox2DMapObjectParserwith the defaultBox2DMapObjectParser.AliasesBox2DMapObjectParser(float unitScale)Box2DMapObjectParser(float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserusing the givenunitScale,tileWidth,tileHeightand setsignoreMapUnitScaleto trueBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.AliasesBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float unitScale)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.AliasesandunitScaleand setsignoreMapUnitScaleto trueBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Aliases,tileWidthandtileHeightBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserwith the given parameters and setsignoreMapUnitScaleto trueBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.AliasesandBox2DMapObjectParser.ListenerBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener, float unitScale)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Aliases,Box2DMapObjectParser.ListenerandunitScaleand setsignoreMapUnitScaleto trueBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Listener,Box2DMapObjectParser.Aliases,tileWidthandtileHeightBox2DMapObjectParser(Box2DMapObjectParser.Listener listener)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.ListenerBox2DMapObjectParser(Box2DMapObjectParser.Listener listener, float unitScale)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.ListenerandunitScaleand setsignoreMapUnitScaleto trueBox2DMapObjectParser(Box2DMapObjectParser.Listener listener, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Listener,tileWidthandtileHeightBox2DMapObjectParser(Box2DMapObjectParser.Listener listener, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserwith the given parameters and setsignoreMapUnitScaleto trueBox2DMapObjectParser(Box2DMapObjectParser.Listener listener, Box2DMapObjectParser.Aliases aliases, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserwith the given parameters and setsignoreMapUnitScaleto true - 
Method Summary
Modifier and Type Method Description voidassignProperties(com.badlogic.gdx.physics.box2d.BodyDef bodyDef, com.badlogic.gdx.maps.MapProperties properties)assigns the givenpropertiesto the values of the given BodyDefvoidassignProperties(com.badlogic.gdx.physics.box2d.FixtureDef fixtureDef, com.badlogic.gdx.maps.MapProperties properties)voidassignProperties(com.badlogic.gdx.physics.box2d.JointDef jointDef, com.badlogic.gdx.maps.MapProperties properties)assigns the common properties of all JointDefsvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.DistanceJointDef distanceJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.FrictionJointDef frictionJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.GearJointDef gearJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.MouseJointDef mouseJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.PrismaticJointDef prismaticJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.PulleyJointDef pulleyJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.RevoluteJointDef revoluteJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.RopeJointDef ropeJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.WeldJointDef weldJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitionvoidassignProperties(com.badlogic.gdx.physics.box2d.joints.WheelJointDef wheelJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definitioncom.badlogic.gdx.physics.box2d.BodycreateBody(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapObject mapObject)creates aBodyin the givenWorldfrom the givenMapObjectcom.badlogic.gdx.physics.box2d.FixturecreateFixture(com.badlogic.gdx.maps.MapObject mapObject)com.badlogic.gdx.physics.box2d.FixturecreateFixture(com.badlogic.gdx.maps.MapObject mapObject, com.badlogic.gdx.physics.box2d.Body body)creates aFixturefrom aMapObjectcom.badlogic.gdx.physics.box2d.Fixture[]createFixtures(com.badlogic.gdx.maps.MapObject mapObject)com.badlogic.gdx.physics.box2d.Fixture[]createFixtures(com.badlogic.gdx.maps.MapObject mapObject, com.badlogic.gdx.physics.box2d.Body body)createsFixturesfrom aMapObjectcom.badlogic.gdx.physics.box2d.JointcreateJoint(com.badlogic.gdx.maps.MapObject mapObject)creates aJointfrom aMapObjectcom.badlogic.gdx.physics.box2d.BodycreateObject(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapObject object)static java.lang.StringfindAvailableName(java.lang.String desiredName, com.badlogic.gdx.utils.ObjectMap<java.lang.String,?> map)Box2DMapObjectParser.AliasesgetAliases()com.badlogic.gdx.utils.ObjectMap<java.lang.String,com.badlogic.gdx.physics.box2d.Body>getBodies()com.badlogic.gdx.utils.ObjectMap<java.lang.String,com.badlogic.gdx.physics.box2d.Fixture>getFixtures()com.badlogic.gdx.maps.MapPropertiesgetHeritage()com.badlogic.gdx.utils.ObjectMap<java.lang.String,com.badlogic.gdx.physics.box2d.Joint>getJoints()Box2DMapObjectParser.ListenergetListener()floatgetTileHeight()floatgetTileWidth()floatgetUnitScale()booleanisIgnoreLayerUnitScale()booleanisIgnoreMapUnitScale()booleanisTriangulate()com.badlogic.gdx.physics.box2d.Worldload(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.Map map)creates the givenMap'sMapObjectsin the givenWorldcom.badlogic.gdx.physics.box2d.Worldload(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapLayer layer)creates the givenMapLayer'sMapObjectsin the givenWorldvoidreset()resets all fields to their default valuesvoidsetAliases(Box2DMapObjectParser.Aliases aliases)voidsetHeritage(com.badlogic.gdx.maps.MapProperties heritage)voidsetIgnoreLayerUnitScale(boolean ignoreLayerUnitScale)voidsetIgnoreMapUnitScale(boolean ignoreMapUnitScale)voidsetListener(Box2DMapObjectParser.Listener listener)voidsetTileHeight(float tileHeight)voidsetTileWidth(float tileWidth)voidsetTriangulate(boolean triangulate)voidsetUnitScale(float unitScale)voidtransform(com.badlogic.gdx.math.Matrix4 mat, java.lang.String orientation)transforms the given matrix according to the given orientationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Field Details
- 
defaultListener
theBox2DMapObjectParser.Listenerused by default (anBox2DMapObjectParser.Listener.Adapterinstance) 
 - 
 - 
Constructor Details
- 
Box2DMapObjectParser
public Box2DMapObjectParser()creates a newBox2DMapObjectParserwith the defaultBox2DMapObjectParser.Aliases - 
Box2DMapObjectParser
creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Aliases- Parameters:
 aliases- thealiasesto use
 - 
Box2DMapObjectParser
creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Listener- Parameters:
 listener- thelistenerto use
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.AliasesandBox2DMapObjectParser.Listener- Parameters:
 aliases- thealiaseslistener- thelistener
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Aliases,tileWidthandtileHeight- Parameters:
 aliases- thealiasestileWidth- thetileWidthtileHeight- thetileHeight
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Listener listener, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Listener,tileWidthandtileHeight- Parameters:
 listener- thelistenertileWidth- thetileWidthtileHeight- thetileHeight
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Listener,Box2DMapObjectParser.Aliases,tileWidthandtileHeight- Parameters:
 aliases- thealiaseslistener- thelistenertileWidth- thetileWidthtileHeight- thetileHeight
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(float unitScale)- Parameters:
 unitScale- theunitScaleto use
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserusing the givenunitScale,tileWidth,tileHeightand setsignoreMapUnitScaleto true- Parameters:
 unitScale- theunitScaleto usetileWidth- thetileWidthto usetileHeight- thetileHeightto use
 - 
Box2DMapObjectParser
creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.AliasesandunitScaleand setsignoreMapUnitScaleto true- Parameters:
 aliases- thealiasesto useunitScale- theunitScaleto use
 - 
Box2DMapObjectParser
creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.ListenerandunitScaleand setsignoreMapUnitScaleto true- Parameters:
 listener- thelistenerto useunitScale- theunitScaleto use
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener, float unitScale)creates a newBox2DMapObjectParserusing the givenBox2DMapObjectParser.Aliases,Box2DMapObjectParser.ListenerandunitScaleand setsignoreMapUnitScaleto true- Parameters:
 aliases- thealiasesto uselistener- thelistenerto useunitScale- theunitScaleto use
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserwith the given parameters and setsignoreMapUnitScaleto true- Parameters:
 aliases- thealiasesto useunitScale- theunitScaleto usetileWidth- thetileWidthto usetileHeight- thetileHeightto use
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Listener listener, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserwith the given parameters and setsignoreMapUnitScaleto true- Parameters:
 listener- thelistenerto useunitScale- theunitScaleto usetileWidth- thetileWidthto usetileHeight- thetileHeightto use
 - 
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Listener listener, Box2DMapObjectParser.Aliases aliases, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParserwith the given parameters and setsignoreMapUnitScaleto true- Parameters:
 aliases- thealiasesto uselistener- thelistenerto useunitScale- theunitScaleto usetileWidth- thetileWidthto usetileHeight- thetileHeightto use
 
 - 
 - 
Method Details
- 
load
public com.badlogic.gdx.physics.box2d.World load(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.Map map)creates the givenMap'sMapObjectsin the givenWorld- Parameters:
 world- theWorldto create theMapObjectsof the givenMapinmap- theMapwhichMapObjectsto create in the givenWorld- Returns:
 - the given 
Worldwith the parsedMapObjectsof the givenMapcreated in it 
 - 
load
public com.badlogic.gdx.physics.box2d.World load(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapLayer layer)creates the givenMapLayer'sMapObjectsin the givenWorld- Parameters:
 world- theWorldto create theMapObjectsof the givenMapLayerinlayer- theMapLayerwhichMapObjectsto create in the givenWorld- Returns:
 - the given 
Worldwith the parsedMapObjectsof the givenMapLayercreated in it 
 - 
createObject
public com.badlogic.gdx.physics.box2d.Body createObject(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapObject object)- Parameters:
 world- theWorldin which to create the Body and Fixturesobject- theMapObjectto parse- Returns:
 - the created Body
 - See Also:
 createBody(World, MapObject),createFixtures(MapObject)
 - 
createBody
public com.badlogic.gdx.physics.box2d.Body createBody(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapObject mapObject)creates aBodyin the givenWorldfrom the givenMapObject- Parameters:
 world- theWorldto create theBodyinmapObject- theMapObjectto parse theBodyfrom- Returns:
 - the 
Bodycreated in the givenWorldfrom the givenMapObject 
 - 
createFixture
public com.badlogic.gdx.physics.box2d.Fixture createFixture(com.badlogic.gdx.maps.MapObject mapObject, com.badlogic.gdx.physics.box2d.Body body)creates aFixturefrom aMapObject- Parameters:
 mapObject- theMapObjectto parsebody- theBodyto create theFixtureson- Returns:
 - the parsed 
Fixture 
 - 
createFixtures
public com.badlogic.gdx.physics.box2d.Fixture[] createFixtures(com.badlogic.gdx.maps.MapObject mapObject, com.badlogic.gdx.physics.box2d.Body body)createsFixturesfrom aMapObject- Parameters:
 mapObject- theMapObjectto parsebody- theBodyto create theFixtureson- Returns:
 - an array of parsed 
Fixtures 
 - 
createFixture
public com.badlogic.gdx.physics.box2d.Fixture createFixture(com.badlogic.gdx.maps.MapObject mapObject)- See Also:
 createFixture(MapObject, Body)
 - 
createFixtures
public com.badlogic.gdx.physics.box2d.Fixture[] createFixtures(com.badlogic.gdx.maps.MapObject mapObject)- See Also:
 createFixtures(MapObject, Body)
 - 
transform
public void transform(com.badlogic.gdx.math.Matrix4 mat, java.lang.String orientation)transforms the given matrix according to the given orientation- Parameters:
 mat- the matrix to transformorientation- the orientation
 - 
createJoint
public com.badlogic.gdx.physics.box2d.Joint createJoint(com.badlogic.gdx.maps.MapObject mapObject)creates aJointfrom aMapObject- Parameters:
 mapObject- theJointto parse- Returns:
 - the parsed 
Joint 
 - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.BodyDef bodyDef, com.badlogic.gdx.maps.MapProperties properties)assigns the givenpropertiesto the values of the given BodyDef- Parameters:
 bodyDef- theBodyDefwhich values to set according to the givenMapPropertiesproperties- theMapPropertiesto assign to the givenBodyDef
 - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.FixtureDef fixtureDef, com.badlogic.gdx.maps.MapProperties properties)- See Also:
 assignProperties(BodyDef, MapProperties)
 - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.JointDef jointDef, com.badlogic.gdx.maps.MapProperties properties)assigns the common properties of all JointDefs - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.DistanceJointDef distanceJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.FrictionJointDef frictionJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.GearJointDef gearJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.MouseJointDef mouseJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.PrismaticJointDef prismaticJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.PulleyJointDef pulleyJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.RevoluteJointDef revoluteJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.RopeJointDef ropeJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.WeldJointDef weldJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.joints.WheelJointDef wheelJointDef, com.badlogic.gdx.maps.MapProperties properties)assigns all properties unique to the given joint definition - 
findAvailableName
public static java.lang.String findAvailableName(java.lang.String desiredName, com.badlogic.gdx.utils.ObjectMap<java.lang.String,?> map)- Returns:
 - the desiredName if it was available, otherwise desiredName with a number appended
 
 - 
reset
public void reset()resets all fields to their default values - 
getUnitScale
public float getUnitScale()- Returns:
 - the 
unitScale 
 - 
setUnitScale
public void setUnitScale(float unitScale)- Parameters:
 unitScale- theunitScaleto set
 - 
isIgnoreMapUnitScale
public boolean isIgnoreMapUnitScale()- Returns:
 - the 
ignoreMapUnitScale 
 - 
setIgnoreMapUnitScale
public void setIgnoreMapUnitScale(boolean ignoreMapUnitScale)- Parameters:
 ignoreMapUnitScale- theignoreMapUnitScaleto set
 - 
isIgnoreLayerUnitScale
public boolean isIgnoreLayerUnitScale()- Returns:
 - the 
ignoreLayerUnitScale 
 - 
setIgnoreLayerUnitScale
public void setIgnoreLayerUnitScale(boolean ignoreLayerUnitScale)- Parameters:
 ignoreLayerUnitScale- theignoreLayerUnitScaleto set
 - 
getTileWidth
public float getTileWidth()- Returns:
 - the 
tileWidth 
 - 
setTileWidth
public void setTileWidth(float tileWidth)- Parameters:
 tileWidth- thetileWidthto set
 - 
getTileHeight
public float getTileHeight()- Returns:
 - the 
tileHeight 
 - 
setTileHeight
public void setTileHeight(float tileHeight)- Parameters:
 tileHeight- thetileHeightto set
 - 
isTriangulate
public boolean isTriangulate()- Returns:
 - the 
triangulate 
 - 
setTriangulate
public void setTriangulate(boolean triangulate)- Parameters:
 triangulate- thetriangulateto set
 - 
getAliases
- Returns:
 - the 
Box2DMapObjectParser.Aliases 
 - 
setAliases
- Parameters:
 aliases- theBox2DMapObjectParser.Aliasesto set
 - 
getListener
- Returns:
 - the 
listener 
 - 
setListener
- Parameters:
 listener- thelistenerto set
 - 
getBodies
public com.badlogic.gdx.utils.ObjectMap<java.lang.String,com.badlogic.gdx.physics.box2d.Body> getBodies()- Returns:
 - the parsed 
bodies 
 - 
getFixtures
public com.badlogic.gdx.utils.ObjectMap<java.lang.String,com.badlogic.gdx.physics.box2d.Fixture> getFixtures()- Returns:
 - the parsed 
fixtures 
 - 
getJoints
public com.badlogic.gdx.utils.ObjectMap<java.lang.String,com.badlogic.gdx.physics.box2d.Joint> getJoints()- Returns:
 - the parsed 
joints 
 - 
getHeritage
public com.badlogic.gdx.maps.MapProperties getHeritage()- Returns:
 - the 
heritage 
 - 
setHeritage
public void setHeritage(com.badlogic.gdx.maps.MapProperties heritage)- Parameters:
 heritage- theheritageto set
 
 -