public class TiledObjectGroup
extends java.lang.Object
TiledObject
s loaded from a TiledMap
Constructor and Description |
---|
TiledObjectGroup()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(java.lang.String propertyName)
Returns if the group contains the specified property
|
int |
getHeight()
Returns the height of the group in tiles
|
java.lang.String |
getName()
Returns the name of this group
|
java.util.List<TiledObject> |
getObjects()
Returns the objects within this group
|
java.lang.String |
getProperty(java.lang.String propertyName)
Returns the value of a specified property
|
int |
getWidth()
Returns the width of the group in tiles
|
void |
setHeight(int height)
Sets the height of the group in tiles
|
void |
setName(java.lang.String name)
Sets the name of this group
|
void |
setProperty(java.lang.String propertyName,
java.lang.String value)
Sets the value of a specified property
|
void |
setWidth(int width)
Sets the width of the group in tiles
|
public boolean containsProperty(java.lang.String propertyName)
propertyName
- The property name to search forpublic java.lang.String getProperty(java.lang.String propertyName)
propertyName
- The property name to search forpublic void setProperty(java.lang.String propertyName, java.lang.String value)
propertyName
- The property name to set the value forvalue
- The value of the property to setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- public int getWidth()
public void setWidth(int width)
width
- public int getHeight()
public void setHeight(int height)
height
- public java.util.List<TiledObject> getObjects()