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 class
Box2DMapObjectParser.Aliases
defines thealiases
to use when parsingstatic interface
Box2DMapObjectParser.Listener
Allows modification ofMapObjects
before 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 theMap
instance! 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.Adapter
defaultListener
theBox2DMapObjectParser.Listener
used by default (anBox2DMapObjectParser.Listener.Adapter
instance) -
Constructor Summary
Constructors Constructor Description Box2DMapObjectParser()
creates a newBox2DMapObjectParser
with the defaultBox2DMapObjectParser.Aliases
Box2DMapObjectParser(float unitScale)
Box2DMapObjectParser(float unitScale, float tileWidth, float tileHeight)
creates a newBox2DMapObjectParser
using the givenunitScale
,tileWidth
,tileHeight
and setsignoreMapUnitScale
to trueBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float unitScale)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
andunitScale
and setsignoreMapUnitScale
to trueBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float tileWidth, float tileHeight)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
,tileWidth
andtileHeight
Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float unitScale, float tileWidth, float tileHeight)
creates a newBox2DMapObjectParser
with the given parameters and setsignoreMapUnitScale
to trueBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
andBox2DMapObjectParser.Listener
Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener, float unitScale)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
,Box2DMapObjectParser.Listener
andunitScale
and setsignoreMapUnitScale
to trueBox2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener, float tileWidth, float tileHeight)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Listener
,Box2DMapObjectParser.Aliases
,tileWidth
andtileHeight
Box2DMapObjectParser(Box2DMapObjectParser.Listener listener)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Listener
Box2DMapObjectParser(Box2DMapObjectParser.Listener listener, float unitScale)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Listener
andunitScale
and setsignoreMapUnitScale
to trueBox2DMapObjectParser(Box2DMapObjectParser.Listener listener, float tileWidth, float tileHeight)
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Listener
,tileWidth
andtileHeight
Box2DMapObjectParser(Box2DMapObjectParser.Listener listener, float unitScale, float tileWidth, float tileHeight)
creates a newBox2DMapObjectParser
with the given parameters and setsignoreMapUnitScale
to trueBox2DMapObjectParser(Box2DMapObjectParser.Listener listener, Box2DMapObjectParser.Aliases aliases, float unitScale, float tileWidth, float tileHeight)
creates a newBox2DMapObjectParser
with the given parameters and setsignoreMapUnitScale
to true -
Method Summary
Modifier and Type Method Description void
assignProperties(com.badlogic.gdx.physics.box2d.BodyDef bodyDef, com.badlogic.gdx.maps.MapProperties properties)
assigns the givenproperties
to the values of the given BodyDefvoid
assignProperties(com.badlogic.gdx.physics.box2d.FixtureDef fixtureDef, com.badlogic.gdx.maps.MapProperties properties)
void
assignProperties(com.badlogic.gdx.physics.box2d.JointDef jointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns the common properties of all JointDefsvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.DistanceJointDef distanceJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.FrictionJointDef frictionJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.GearJointDef gearJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.MouseJointDef mouseJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.PrismaticJointDef prismaticJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.PulleyJointDef pulleyJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.RevoluteJointDef revoluteJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.RopeJointDef ropeJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(com.badlogic.gdx.physics.box2d.joints.WeldJointDef weldJointDef, com.badlogic.gdx.maps.MapProperties properties)
assigns all properties unique to the given joint definitionvoid
assignProperties(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.Body
createBody(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapObject mapObject)
creates aBody
in the givenWorld
from the givenMapObject
com.badlogic.gdx.physics.box2d.Fixture
createFixture(com.badlogic.gdx.maps.MapObject mapObject)
com.badlogic.gdx.physics.box2d.Fixture
createFixture(com.badlogic.gdx.maps.MapObject mapObject, com.badlogic.gdx.physics.box2d.Body body)
creates aFixture
from aMapObject
com.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)
createsFixtures
from aMapObject
com.badlogic.gdx.physics.box2d.Joint
createJoint(com.badlogic.gdx.maps.MapObject mapObject)
creates aJoint
from aMapObject
com.badlogic.gdx.physics.box2d.Body
createObject(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapObject object)
static java.lang.String
findAvailableName(java.lang.String desiredName, com.badlogic.gdx.utils.ObjectMap<java.lang.String,?> map)
Box2DMapObjectParser.Aliases
getAliases()
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.MapProperties
getHeritage()
com.badlogic.gdx.utils.ObjectMap<java.lang.String,com.badlogic.gdx.physics.box2d.Joint>
getJoints()
Box2DMapObjectParser.Listener
getListener()
float
getTileHeight()
float
getTileWidth()
float
getUnitScale()
boolean
isIgnoreLayerUnitScale()
boolean
isIgnoreMapUnitScale()
boolean
isTriangulate()
com.badlogic.gdx.physics.box2d.World
load(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.Map map)
creates the givenMap's
MapObjects
in the givenWorld
com.badlogic.gdx.physics.box2d.World
load(com.badlogic.gdx.physics.box2d.World world, com.badlogic.gdx.maps.MapLayer layer)
creates the givenMapLayer's
MapObjects
in the givenWorld
void
reset()
resets all fields to their default valuesvoid
setAliases(Box2DMapObjectParser.Aliases aliases)
void
setHeritage(com.badlogic.gdx.maps.MapProperties heritage)
void
setIgnoreLayerUnitScale(boolean ignoreLayerUnitScale)
void
setIgnoreMapUnitScale(boolean ignoreMapUnitScale)
void
setListener(Box2DMapObjectParser.Listener listener)
void
setTileHeight(float tileHeight)
void
setTileWidth(float tileWidth)
void
setTriangulate(boolean triangulate)
void
setUnitScale(float unitScale)
void
transform(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.Listener
used by default (anBox2DMapObjectParser.Listener.Adapter
instance)
-
-
Constructor Details
-
Box2DMapObjectParser
public Box2DMapObjectParser()creates a newBox2DMapObjectParser
with the defaultBox2DMapObjectParser.Aliases
-
Box2DMapObjectParser
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
- Parameters:
aliases
- thealiases
to use
-
Box2DMapObjectParser
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Listener
- Parameters:
listener
- thelistener
to use
-
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener)creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
andBox2DMapObjectParser.Listener
- Parameters:
aliases
- thealiases
listener
- thelistener
-
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float tileWidth, float tileHeight)creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
,tileWidth
andtileHeight
- Parameters:
aliases
- thealiases
tileWidth
- thetileWidth
tileHeight
- thetileHeight
-
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Listener listener, float tileWidth, float tileHeight)creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Listener
,tileWidth
andtileHeight
- Parameters:
listener
- thelistener
tileWidth
- thetileWidth
tileHeight
- thetileHeight
-
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener, float tileWidth, float tileHeight)creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Listener
,Box2DMapObjectParser.Aliases
,tileWidth
andtileHeight
- Parameters:
aliases
- thealiases
listener
- thelistener
tileWidth
- thetileWidth
tileHeight
- thetileHeight
-
Box2DMapObjectParser
public Box2DMapObjectParser(float unitScale)- Parameters:
unitScale
- theunitScale
to use
-
Box2DMapObjectParser
public Box2DMapObjectParser(float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParser
using the givenunitScale
,tileWidth
,tileHeight
and setsignoreMapUnitScale
to true- Parameters:
unitScale
- theunitScale
to usetileWidth
- thetileWidth
to usetileHeight
- thetileHeight
to use
-
Box2DMapObjectParser
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
andunitScale
and setsignoreMapUnitScale
to true- Parameters:
aliases
- thealiases
to useunitScale
- theunitScale
to use
-
Box2DMapObjectParser
creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Listener
andunitScale
and setsignoreMapUnitScale
to true- Parameters:
listener
- thelistener
to useunitScale
- theunitScale
to use
-
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, Box2DMapObjectParser.Listener listener, float unitScale)creates a newBox2DMapObjectParser
using the givenBox2DMapObjectParser.Aliases
,Box2DMapObjectParser.Listener
andunitScale
and setsignoreMapUnitScale
to true- Parameters:
aliases
- thealiases
to uselistener
- thelistener
to useunitScale
- theunitScale
to use
-
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Aliases aliases, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParser
with the given parameters and setsignoreMapUnitScale
to true- Parameters:
aliases
- thealiases
to useunitScale
- theunitScale
to usetileWidth
- thetileWidth
to usetileHeight
- thetileHeight
to use
-
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Listener listener, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParser
with the given parameters and setsignoreMapUnitScale
to true- Parameters:
listener
- thelistener
to useunitScale
- theunitScale
to usetileWidth
- thetileWidth
to usetileHeight
- thetileHeight
to use
-
Box2DMapObjectParser
public Box2DMapObjectParser(Box2DMapObjectParser.Listener listener, Box2DMapObjectParser.Aliases aliases, float unitScale, float tileWidth, float tileHeight)creates a newBox2DMapObjectParser
with the given parameters and setsignoreMapUnitScale
to true- Parameters:
aliases
- thealiases
to uselistener
- thelistener
to useunitScale
- theunitScale
to usetileWidth
- thetileWidth
to usetileHeight
- thetileHeight
to 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's
MapObjects
in the givenWorld
- Parameters:
world
- theWorld
to create theMapObjects
of the givenMap
inmap
- theMap
whichMapObjects
to create in the givenWorld
- Returns:
- the given
World
with the parsedMapObjects
of the givenMap
created 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's
MapObjects
in the givenWorld
- Parameters:
world
- theWorld
to create theMapObjects
of the givenMapLayer
inlayer
- theMapLayer
whichMapObjects
to create in the givenWorld
- Returns:
- the given
World
with the parsedMapObjects
of the givenMapLayer
created 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
- theWorld
in which to create the Body and Fixturesobject
- theMapObject
to 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 aBody
in the givenWorld
from the givenMapObject
- Parameters:
world
- theWorld
to create theBody
inmapObject
- theMapObject
to parse theBody
from- Returns:
- the
Body
created in the givenWorld
from 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 aFixture
from aMapObject
- Parameters:
mapObject
- theMapObject
to parsebody
- theBody
to create theFixtures
on- 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)createsFixtures
from aMapObject
- Parameters:
mapObject
- theMapObject
to parsebody
- theBody
to create theFixtures
on- 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 aJoint
from aMapObject
- Parameters:
mapObject
- theJoint
to parse- Returns:
- the parsed
Joint
-
assignProperties
public void assignProperties(com.badlogic.gdx.physics.box2d.BodyDef bodyDef, com.badlogic.gdx.maps.MapProperties properties)assigns the givenproperties
to the values of the given BodyDef- Parameters:
bodyDef
- theBodyDef
which values to set according to the givenMapProperties
properties
- theMapProperties
to 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
- theunitScale
to set
-
isIgnoreMapUnitScale
public boolean isIgnoreMapUnitScale()- Returns:
- the
ignoreMapUnitScale
-
setIgnoreMapUnitScale
public void setIgnoreMapUnitScale(boolean ignoreMapUnitScale)- Parameters:
ignoreMapUnitScale
- theignoreMapUnitScale
to set
-
isIgnoreLayerUnitScale
public boolean isIgnoreLayerUnitScale()- Returns:
- the
ignoreLayerUnitScale
-
setIgnoreLayerUnitScale
public void setIgnoreLayerUnitScale(boolean ignoreLayerUnitScale)- Parameters:
ignoreLayerUnitScale
- theignoreLayerUnitScale
to set
-
getTileWidth
public float getTileWidth()- Returns:
- the
tileWidth
-
setTileWidth
public void setTileWidth(float tileWidth)- Parameters:
tileWidth
- thetileWidth
to set
-
getTileHeight
public float getTileHeight()- Returns:
- the
tileHeight
-
setTileHeight
public void setTileHeight(float tileHeight)- Parameters:
tileHeight
- thetileHeight
to set
-
isTriangulate
public boolean isTriangulate()- Returns:
- the
triangulate
-
setTriangulate
public void setTriangulate(boolean triangulate)- Parameters:
triangulate
- thetriangulate
to set
-
getAliases
- Returns:
- the
Box2DMapObjectParser.Aliases
-
setAliases
- Parameters:
aliases
- theBox2DMapObjectParser.Aliases
to set
-
getListener
- Returns:
- the
listener
-
setListener
- Parameters:
listener
- thelistener
to 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
- theheritage
to set
-