public class TiledObjectGroup extends Layer
TiledObjects loaded from a TiledMapDEFAULT_PROPERTY_MAP_SIZE| Modifier and Type | Method and Description |
|---|---|
static TiledObjectGroup |
create() |
void |
dispose() |
boolean |
equals(java.lang.Object o) |
static TiledObjectGroup |
fromInputStream(java.io.DataInputStream inputStream) |
int |
getHeight()
Returns the height of the group in tiles
|
TiledObject |
getObjectById(int id)
Returns the
TiledObject with the specified ID |
TiledObject |
getObjectByName(java.lang.String name)
Returns the
TiledObject with the specified name |
org.mini2Dx.gdx.utils.Array<TiledObject> |
getObjects()
Returns the objects within this group
|
int |
getWidth()
Returns the width of the group in tiles
|
int |
hashCode() |
void |
readData(java.io.DataInputStream inputStream)
Deserializes this object from a
DataInputStream |
void |
setHeight(int height)
Sets the height of the group in tiles
|
void |
setWidth(int width)
Sets the width of the group in tiles
|
java.lang.String |
toString() |
void |
writeData(java.io.DataOutputStream outputStream)
Serializes this object to a
DataOutputStream |
containsProperty, getIndex, getLayerType, getName, getProperties, getProperty, isVisible, setIndex, setName, setProperty, setVisiblepublic static TiledObjectGroup create()
public static TiledObjectGroup fromInputStream(java.io.DataInputStream inputStream) throws java.io.IOException
java.io.IOExceptionpublic void writeData(java.io.DataOutputStream outputStream)
throws java.io.IOException
GameDataSerializableDataOutputStreamwriteData in interface GameDataSerializablewriteData in class LayeroutputStream - The DataOutputStream to write tojava.io.IOException - Thrown if an error occurs during I/Opublic void readData(java.io.DataInputStream inputStream)
throws java.io.IOException
GameDataSerializableDataInputStreamreadData in interface GameDataSerializablereadData in class LayerinputStream - The DataInputStream to read fromjava.io.IOException - Thrown if an error occurs during I/Opublic int getWidth()
public void setWidth(int width)
width - public int getHeight()
public void setHeight(int height)
height - public org.mini2Dx.gdx.utils.Array<TiledObject> getObjects()
public TiledObject getObjectById(int id)
TiledObject with the specified IDid - The ID to search forpublic TiledObject getObjectByName(java.lang.String name)
TiledObject with the specified namename - The name to search forpublic void dispose()